Lines Matching defs:Switch
432 << "Switch instruction is not predictable.";
562 : Switch(MSwitch->getInstr()), SwitchBlock(Switch->getParent()), ORE(ORE),
567 SwitchInst *getSwitchInst() { return Switch; }
575 Switch)
576 << "Switch instruction is not predictable.";
581 auto *SwitchPhi = cast<PHINode>(Switch->getOperand(0));
632 SwitchBlock != cast<PHINode>(Switch->getOperand(0))->getParent())
699 Switch)
761 PHINode *FirstDef = dyn_cast<PHINode>(Switch->getOperand(0));
791 SwitchInst *Switch;
821 SwitchInst *Switch = SwitchPaths->getSwitchInst();
824 if (Switch->getNumSuccessors() <= 1)
836 // Update Metrics for the Switch block, this is always cloned
844 // If the Switch block is the Determinator, then we can continue since
866 Switch)
877 return OptimizationRemarkMissed(DEBUG_TYPE, "ConvergentInst", Switch)
887 return OptimizationRemarkMissed(DEBUG_TYPE, "ConvergentInst", Switch)
897 TTI->getEstimatedNumberOfCaseClusters(*Switch, JumpTableSize, nullptr,
904 APInt(32, Switch->getNumSuccessors()).ceilLogBase2();
926 return OptimizationRemarkMissed(DEBUG_TYPE, "NotProfitable", Switch)
935 return OptimizationRemark(DEBUG_TYPE, "JumpThreaded", Switch)
936 << "Switch statement jump-threaded.";
1133 SwitchInst *Switch = SwitchPaths->getSwitchInst();
1134 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState);
1244 SwitchInst *Switch = cast<SwitchInst>(LastBlock->getTerminator());
1245 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState);
1254 Switch->eraseFromParent();
1304 BasicBlock *getNextCaseSuccessor(SwitchInst *Switch, const APInt &NextState) {
1306 for (auto Case : Switch->cases()) {
1313 NextCase = Switch->getDefaultDest();
1353 MainSwitch Switch(SI, LI, ORE);
1355 if (!Switch.getInstr()) {
1365 unfoldSelectInstrs(DT, Switch.getSelectInsts());
1366 if (!Switch.getSelectInsts().empty())
1369 AllSwitchPaths SwitchPaths(&Switch, ORE, LI,