Lines Matching refs:Switch

537       : Switch(MSwitch->getInstr()), SwitchBlock(Switch->getParent()),  in AllSwitchPaths()
542 SwitchInst *getSwitchInst() { return Switch; } in getSwitchInst()
553 Switch) in run()
601 Switch) in paths()
658 Value *FirstDef = Switch->getOperand(0); in getStateDefMap()
710 Instruction *SwitchCondI = dyn_cast<Instruction>(Switch->getCondition()); in isSupported()
716 const BasicBlock *SwitchCondUseBB = Switch->getParent(); in isSupported()
747 SwitchInst *Switch; member
775 SwitchInst *Switch = SwitchPaths->getSwitchInst(); in isLegalAndProfitableToTransform() local
816 Switch) in isLegalAndProfitableToTransform()
826 return OptimizationRemarkMissed(DEBUG_TYPE, "ConvergentInst", Switch) in isLegalAndProfitableToTransform()
836 return OptimizationRemarkMissed(DEBUG_TYPE, "ConvergentInst", Switch) in isLegalAndProfitableToTransform()
846 TTI->getEstimatedNumberOfCaseClusters(*Switch, JumpTableSize, nullptr, in isLegalAndProfitableToTransform()
853 APInt(32, Switch->getNumSuccessors()).ceilLogBase2(); in isLegalAndProfitableToTransform()
873 return OptimizationRemarkMissed(DEBUG_TYPE, "NotProfitable", Switch) in isLegalAndProfitableToTransform()
882 return OptimizationRemark(DEBUG_TYPE, "JumpThreaded", Switch) in isLegalAndProfitableToTransform()
1078 SwitchInst *Switch = SwitchPaths->getSwitchInst(); in updateSuccessorPhis() local
1079 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState); in updateSuccessorPhis()
1189 SwitchInst *Switch = cast<SwitchInst>(LastBlock->getTerminator()); in updateLastSuccessor() local
1190 BasicBlock *NextCase = getNextCaseSuccessor(Switch, NextState); in updateLastSuccessor()
1199 Switch->eraseFromParent(); in updateLastSuccessor()
1249 BasicBlock *getNextCaseSuccessor(SwitchInst *Switch, uint64_t NextState) { in getNextCaseSuccessor()
1251 for (auto Case : Switch->cases()) { in getNextCaseSuccessor()
1258 NextCase = Switch->getDefaultDest(); in getNextCaseSuccessor()
1297 MainSwitch Switch(SI, ORE); in run() local
1299 if (!Switch.getInstr()) in run()
1306 unfoldSelectInstrs(DT, Switch.getSelectInsts()); in run()
1307 if (!Switch.getSelectInsts().empty()) in run()
1310 AllSwitchPaths SwitchPaths(&Switch, ORE); in run()