Lines Matching refs:getTerminator

287   BranchInst *BI = dyn_cast<BranchInst>(PBB->getTerminator());  in DominatesMergePoint()
649 Value *PredVal = isValueEqualityComparison(Pred->getTerminator()); in SimplifyEqualityComparisonWithOnlyPredecessor()
661 BasicBlock *PredDef = GetValueEqualityComparisonCases(Pred->getTerminator(), in SimplifyEqualityComparisonWithOnlyPredecessor()
690 DEBUG(dbgs() << "Threading pred instr: " << *Pred->getTerminator() in SimplifyEqualityComparisonWithOnlyPredecessor()
703 DEBUG(dbgs() << "Threading pred instr: " << *Pred->getTerminator() in SimplifyEqualityComparisonWithOnlyPredecessor()
772 DEBUG(dbgs() << "Threading pred instr: " << *Pred->getTerminator() in SimplifyEqualityComparisonWithOnlyPredecessor()
859 TerminatorInst *PTI = Pred->getTerminator(); in FoldValueComparisonIntoPredecessors()
1240 BranchInst *BI2 = dyn_cast<BranchInst>(BB2->getTerminator()); in SinkThenElseCodeToEnd()
1498 BasicBlock *EndBB = ThenBB->getTerminator()->getSuccessor(0); in SpeculativelyExecuteBB()
1688 BranchInst *BI = cast<BranchInst>(BB->getTerminator()); in BlockIsSimpleEnoughToThreadThrough()
1745 if (isa<IndirectBrInst>(PredBB->getTerminator())) continue; in FoldCondBranchOnPHI()
1795 TerminatorInst *PredBBTI = PredBB->getTerminator(); in FoldCondBranchOnPHI()
1881 if (cast<BranchInst>(IfBlock1->getTerminator())->isConditional()) { in FoldTwoEntryPHINode()
1894 if (cast<BranchInst>(IfBlock2->getTerminator())->isConditional()) { in FoldTwoEntryPHINode()
1912 Instruction *InsertPt = DomBlock->getTerminator(); in FoldTwoEntryPHINode()
1920 IfBlock1->getTerminator()->getIterator()); in FoldTwoEntryPHINode()
1924 IfBlock2->getTerminator()->getIterator()); in FoldTwoEntryPHINode()
1941 TerminatorInst *OldTI = DomBlock->getTerminator(); in FoldTwoEntryPHINode()
1956 ReturnInst *TrueRet = cast<ReturnInst>(TrueSucc->getTerminator()); in SimplifyCondBranchToTwoReturns()
1957 ReturnInst *FalseRet = cast<ReturnInst>(FalseSucc->getTerminator()); in SimplifyCondBranchToTwoReturns()
2087 if (BranchInst *PBI = dyn_cast<BranchInst>(PB->getTerminator())) in FoldBranchToCommonDest()
2163 BranchInst *PBI = dyn_cast<BranchInst>(PredBlock->getTerminator()); in FoldBranchToCommonDest()
2517 Value *PCond = cast<BranchInst>(PFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
2519 Value *QCond = cast<BranchInst>(QFB->getSinglePredecessor()->getTerminator()) in mergeConditionalStoreToAddress()
2690 if ((PBI = dyn_cast<BranchInst>(P->getTerminator())) && in SimplifyCondBranchToCondBranch()
3043 if (!Pred || !isa<SwitchInst>(Pred->getTerminator())) return false; in TryToSimplifyUncondBranchWithICmpInIt()
3045 SwitchInst *SI = cast<SwitchInst>(Pred->getTerminator()); in TryToSimplifyUncondBranchWithICmpInIt()
3083 BasicBlock *SuccBlock = BB->getTerminator()->getSuccessor(0); in TryToSimplifyUncondBranchWithICmpInIt()
3189 TerminatorInst *OldTI = BB->getTerminator(); in SimplifyBranchOnICmpChain()
3375 TerminatorInst *TI = PredBB->getTerminator(); in SimplifyCleanupReturn()
3394 TerminatorInst *PTI = P->getTerminator(); in SimplifyReturn()
3427 if (isa<ReturnInst>(BI->getSuccessor(0)->getTerminator()) && in SimplifyReturn()
3428 isa<ReturnInst>(BI->getSuccessor(1)->getTerminator()) && in SimplifyReturn()
3486 TerminatorInst *TI = Preds[i]->getTerminator(); in SimplifyUnreachable()
3697 auto *OldTI = NewDefault->getTerminator(); in EliminateDeadSwitchCases()
3742 if (BB->getFirstNonPHIOrDbg() != BB->getTerminator()) in FindPHIForConditionForwarding()
3747 BranchInst *Branch = dyn_cast<BranchInst>(BB->getTerminator()); in FindPHIForConditionForwarding()
4840 InvokeInst *II = cast<InvokeInst>(Pred->getTerminator()); in TryToMergeLandingPad()
4974 TerminatorInst *Succ0TI = BI->getSuccessor(0)->getTerminator(); in SimplifyCondBranch()
4983 TerminatorInst *Succ1TI = BI->getSuccessor(1)->getTerminator(); in SimplifyCondBranch()
4999 if (BranchInst *PBI = dyn_cast<BranchInst>((*PI)->getTerminator())) in SimplifyCondBranch()
5007 if (BranchInst *PBI = dyn_cast<BranchInst>(PrevBB->getTerminator())) in SimplifyCondBranch()
5063 TerminatorInst *T = PHI->getIncomingBlock(i)->getTerminator(); in removeUndefIntroducingPredecessor()
5087 assert(BB->getTerminator() && "Degenerate basic block encountered!"); in run()
5124 Builder.SetInsertPoint(BB->getTerminator()); in run()
5125 if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) { in run()
5131 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in run()
5133 } else if (ResumeInst *RI = dyn_cast<ResumeInst>(BB->getTerminator())) { in run()
5136 dyn_cast<CleanupReturnInst>(BB->getTerminator())) { in run()
5138 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) { in run()
5141 dyn_cast<UnreachableInst>(BB->getTerminator())) { in run()
5144 dyn_cast<IndirectBrInst>(BB->getTerminator())) { in run()