Lines Matching refs:getSuccessor
233 BasicBlock *Succ = BI->getSuccessor(0); in runImpl()
676 BasicBlock *TestBB = BBTerm->getSuccessor(MinSucc); in GetBestDestForJumpOnUndef()
680 TestBB = BBTerm->getSuccessor(i); in GetBestDestForJumpOnUndef()
775 BBTerm->getSuccessor(i)->removePredecessor(BB, true); in ProcessBlock()
780 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock()
821 CondBr->getSuccessor(ToRemove)->removePredecessor(BB, true); in ProcessBlock()
822 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
903 if (PBI->getSuccessor(0) != CurrentBB && PBI->getSuccessor(1) != CurrentBB) in ProcessImpliedCondition()
906 bool FalseDest = PBI->getSuccessor(1) == CurrentBB; in ProcessImpliedCondition()
910 BI->getSuccessor(*Implication ? 1 : 0)->removePredecessor(BB); in ProcessImpliedCondition()
911 BranchInst::Create(BI->getSuccessor(*Implication ? 0 : 1), BI); in ProcessImpliedCondition()
1160 TI->getSuccessor(i)) == SamePopularity.end()) in FindMostPopularDest()
1163 MostPopularDest = TI->getSuccessor(i); in FindMostPopularDest()
1220 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); in ProcessThreadableEdges()
1270 getSuccessor(GetBestDestForJumpOnUndef(BB)); in ProcessThreadableEdges()
1573 if (PredTerm->getSuccessor(i) == BB) { in ThreadEdge()
1769 AddPHINodeEntriesForMappedBlock(BBBranch->getSuccessor(0), BB, PredBB, in DuplicateCondBranchOnPHIIntoPred()
1771 AddPHINodeEntriesForMappedBlock(BBBranch->getSuccessor(1), BB, PredBB, in DuplicateCondBranchOnPHIIntoPred()