Lines Matching refs:TerminatorInst
116 Value *isValueEqualityComparison(TerminatorInst *TI);
117 BasicBlock *GetValueEqualityComparisonCases(TerminatorInst *TI,
119 bool SimplifyEqualityComparisonWithOnlyPredecessor(TerminatorInst *TI,
122 bool FoldValueComparisonIntoPredecessors(TerminatorInst *TI,
144 static bool SafeToMergeTerminators(TerminatorInst *SI1, TerminatorInst *SI2) { in SafeToMergeTerminators()
507 static void EraseTerminatorInstAndDCECond(TerminatorInst *TI) { in EraseTerminatorInstAndDCECond()
524 Value *SimplifyCFGOpt::isValueEqualityComparison(TerminatorInst *TI) { in isValueEqualityComparison()
553 GetValueEqualityComparisonCases(TerminatorInst *TI, in GetValueEqualityComparisonCases()
623 SimplifyEqualityComparisonWithOnlyPredecessor(TerminatorInst *TI, in SimplifyEqualityComparisonWithOnlyPredecessor()
790 static void GetBranchWeights(TerminatorInst *TI, in GetBranchWeights()
824 bool SimplifyCFGOpt::FoldValueComparisonIntoPredecessors(TerminatorInst *TI, in FoldValueComparisonIntoPredecessors()
836 TerminatorInst *PTI = Pred->getTerminator(); in FoldValueComparisonIntoPredecessors()
1088 if (isa<TerminatorInst>(I1)) in HoistThenElseCodeToIf()
1273 isa<TerminatorInst>(I1) || isa<TerminatorInst>(I2) || in SinkThenElseCodeToEnd()
1770 TerminatorInst *PredBBTI = PredBB->getTerminator(); in FoldCondBranchOnPHI()
1860 for (BasicBlock::iterator I = IfBlock1->begin();!isa<TerminatorInst>(I);++I) in FoldTwoEntryPHINode()
1873 for (BasicBlock::iterator I = IfBlock2->begin();!isa<TerminatorInst>(I);++I) in FoldTwoEntryPHINode()
1916 TerminatorInst *OldTI = DomBlock->getTerminator(); in FoldTwoEntryPHINode()
2566 static bool SimplifyTerminatorOnSelect(TerminatorInst *OldTerm, Value *Cond, in SimplifyTerminatorOnSelect()
2862 TerminatorInst *OldTI = BB->getTerminator(); in SimplifyBranchOnICmpChain()
2968 TerminatorInst *PTI = P->getTerminator(); in SimplifyReturn()
3060 TerminatorInst *TI = Preds[i]->getTerminator(); in SimplifyUnreachable()
3443 if (TerminatorInst *T = dyn_cast<TerminatorInst>(I)) { in GetCaseResults()
4523 TerminatorInst *Succ0TI = BI->getSuccessor(0)->getTerminator(); in SimplifyCondBranch()
4532 TerminatorInst *Succ1TI = BI->getSuccessor(1)->getTerminator(); in SimplifyCondBranch()
4604 TerminatorInst *T = PHI->getIncomingBlock(i)->getTerminator(); in removeUndefIntroducingPredecessor()