Lines Matching refs:getTerminator

233               << "' with terminator: " << *BB->getTerminator() << '\n');  in runOnFunction()
241 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in runOnFunction()
678 TerminatorInst *BBTerm = BB->getTerminator(); in GetBestDestForJumpOnUndef()
719 const TerminatorInst *TI = SinglePred->getTerminator(); in ProcessBlock()
739 Instruction *Terminator = BB->getTerminator(); in ProcessBlock()
773 TerminatorInst *BBTerm = BB->getTerminator(); in ProcessBlock()
791 << "' folding terminator: " << *BB->getTerminator() << '\n'); in ProcessBlock()
813 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock()
871 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
877 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
889 auto *BI = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessImpliedCondition()
901 auto *PBI = dyn_cast<BranchInst>(CurrentPred->getTerminator()); in ProcessImpliedCondition()
1027 OneUnavailablePred->getTerminator()->getNumSuccessors() == 1) { in SimplifyPartiallyRedundantLoad()
1043 if (isa<IndirectBrInst>(P->getTerminator())) in SimplifyPartiallyRedundantLoad()
1058 assert(UnavailablePred->getTerminator()->getNumSuccessors() == 1 && in SimplifyPartiallyRedundantLoad()
1062 UnavailablePred->getTerminator()); in SimplifyPartiallyRedundantLoad()
1099 P->getTerminator()); in SimplifyPartiallyRedundantLoad()
1158 TerminatorInst *TI = BB->getTerminator(); in FindMostPopularDest()
1214 if (isa<IndirectBrInst>(Pred->getTerminator())) in ProcessThreadableEdges()
1222 else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) in ProcessThreadableEdges()
1224 else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) { in ProcessThreadableEdges()
1227 assert(isa<IndirectBrInst>(BB->getTerminator()) in ProcessThreadableEdges()
1264 TerminatorInst *PredTI = Pred->getTerminator(); in ProcessThreadableEdges()
1273 MostPopularDest = BB->getTerminator()-> in ProcessThreadableEdges()
1298 if (BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator())) in ProcessBranchOnPHI()
1528 NewBI->setDebugLoc(BB->getTerminator()->getDebugLoc()); in ThreadEdge()
1576 TerminatorInst *PredTerm = PredBB->getTerminator(); in ThreadEdge()
1660 auto TI = BB->getTerminator(); in UpdateBlockFreqAndEdgeWeight()
1711 BranchInst *OldPredBranch = dyn_cast<BranchInst>(PredBB->getTerminator()); in DuplicateCondBranchOnPHIIntoPred()
1715 OldPredBranch = cast<BranchInst>(PredBB->getTerminator()); in DuplicateCondBranchOnPHIIntoPred()
1755 BranchInst *BBBranch = cast<BranchInst>(BB->getTerminator()); in DuplicateCondBranchOnPHIIntoPred()
1823 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in TryToUnfoldSelect()
1840 BranchInst *PredTerm = dyn_cast<BranchInst>(Pred->getTerminator()); in TryToUnfoldSelect()