Lines Matching refs:Switch
497 : Switch(MSwitch->getInstr()), SwitchBlock(Switch->getParent()), in AllSwitchPaths()
502 SwitchInst *getSwitchInst() { return Switch; } in getSwitchInst()
513 Switch) in run()
561 Switch) in paths()
618 Value *FirstDef = Switch->getOperand(0); in getStateDefMap()
670 Instruction *SwitchCondI = dyn_cast<Instruction>(Switch->getCondition()); in isSupported()
676 const BasicBlock *SwitchCondUseBB = Switch->getParent(); in isSupported()
707 SwitchInst *Switch; member
735 SwitchInst *Switch = SwitchPaths->getSwitchInst(); in isLegalAndProfitableToTransform() local
738 if (Switch->getNumSuccessors() <= 1) in isLegalAndProfitableToTransform()
780 Switch) in isLegalAndProfitableToTransform()
790 return OptimizationRemarkMissed(DEBUG_TYPE, "ConvergentInst", Switch) in isLegalAndProfitableToTransform()
800 return OptimizationRemarkMissed(DEBUG_TYPE, "ConvergentInst", Switch) in isLegalAndProfitableToTransform()
810 TTI->getEstimatedNumberOfCaseClusters(*Switch, JumpTableSize, nullptr, in isLegalAndProfitableToTransform()
817 APInt(32, Switch->getNumSuccessors()).ceilLogBase2(); in isLegalAndProfitableToTransform()
839 return OptimizationRemarkMissed(DEBUG_TYPE, "NotProfitable", Switch) in isLegalAndProfitableToTransform()
848 return OptimizationRemark(DEBUG_TYPE, "JumpThreaded", Switch) in isLegalAndProfitableToTransform()
1046 SwitchInst *Switch = SwitchPaths->getSwitchInst(); in updateSuccessorPhis() local
1047 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState); in updateSuccessorPhis()
1157 SwitchInst *Switch = cast<SwitchInst>(LastBlock->getTerminator()); in updateLastSuccessor() local
1158 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState); in updateLastSuccessor()
1167 Switch->eraseFromParent(); in updateLastSuccessor()
1217 BasicBlock *getNextCaseSuccessor(SwitchInst *Switch, const APInt &NextState) { in getNextCaseSuccessor()
1219 for (auto Case : Switch->cases()) { in getNextCaseSuccessor()
1226 NextCase = Switch->getDefaultDest(); in getNextCaseSuccessor()
1265 MainSwitch Switch(SI, ORE); in run() local
1267 if (!Switch.getInstr()) in run()
1274 unfoldSelectInstrs(DT, Switch.getSelectInsts()); in run()
1275 if (!Switch.getSelectInsts().empty()) in run()
1278 AllSwitchPaths SwitchPaths(&Switch, ORE); in run()