Lines Matching defs:Switch

402                << "Switch instruction is not predictable.";
534 : Switch(MSwitch->getInstr()), SwitchBlock(Switch->getParent()), ORE(ORE),
539 SwitchInst *getSwitchInst() { return Switch; }
550 Switch)
551 << "Switch instruction is not predictable.";
573 // Switch block is the determinator, this is the final exit value.
598 Switch)
661 Value *FirstDef = Switch->getOperand(0);
713 Instruction *SwitchCondI = dyn_cast<Instruction>(Switch->getCondition());
719 const BasicBlock *SwitchCondUseBB = Switch->getParent();
750 SwitchInst *Switch;
779 SwitchInst *Switch = SwitchPaths->getSwitchInst();
782 if (Switch->getNumSuccessors() <= 1)
794 // Update Metrics for the Switch block, this is always cloned
802 // If the Switch block is the Determinator, then we can continue since
824 Switch)
835 return OptimizationRemarkMissed(DEBUG_TYPE, "ConvergentInst", Switch)
845 return OptimizationRemarkMissed(DEBUG_TYPE, "ConvergentInst", Switch)
855 TTI->getEstimatedNumberOfCaseClusters(*Switch, JumpTableSize, nullptr,
862 APInt(32, Switch->getNumSuccessors()).ceilLogBase2();
884 return OptimizationRemarkMissed(DEBUG_TYPE, "NotProfitable", Switch)
893 return OptimizationRemark(DEBUG_TYPE, "JumpThreaded", Switch)
894 << "Switch statement jump-threaded.";
1091 SwitchInst *Switch = SwitchPaths->getSwitchInst();
1092 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState);
1202 SwitchInst *Switch = cast<SwitchInst>(LastBlock->getTerminator());
1203 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState);
1212 Switch->eraseFromParent();
1262 BasicBlock *getNextCaseSuccessor(SwitchInst *Switch, const APInt &NextState) {
1264 for (auto Case : Switch->cases()) {
1271 NextCase = Switch->getDefaultDest();
1311 MainSwitch Switch(SI, LI, ORE);
1313 if (!Switch.getInstr())
1320 unfoldSelectInstrs(DT, Switch.getSelectInsts());
1321 if (!Switch.getSelectInsts().empty())
1324 AllSwitchPaths SwitchPaths(&Switch, ORE, LI);