Lines Matching refs:getSuccessor
254 BasicBlock *Succ = BI->getSuccessor(0); in runOnFunction()
680 BasicBlock *TestBB = BBTerm->getSuccessor(MinSucc); in GetBestDestForJumpOnUndef()
684 TestBB = BBTerm->getSuccessor(i); in GetBestDestForJumpOnUndef()
776 BBTerm->getSuccessor(i)->removePredecessor(BB, true); in ProcessBlock()
781 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock()
822 CondBr->getSuccessor(ToRemove)->removePredecessor(BB, true); in ProcessBlock()
823 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
902 if (!PBI || !PBI->isConditional() || PBI->getSuccessor(0) != CurrentBB) in ProcessImpliedCondition()
906 BI->getSuccessor(1)->removePredecessor(BB); in ProcessImpliedCondition()
907 BranchInst::Create(BI->getSuccessor(0), BI); in ProcessImpliedCondition()
1163 TI->getSuccessor(i)) == SamePopularity.end()) in FindMostPopularDest()
1166 MostPopularDest = TI->getSuccessor(i); in FindMostPopularDest()
1223 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); in ProcessThreadableEdges()
1266 if (PredTI->getSuccessor(i) == BB) in ProcessThreadableEdges()
1274 getSuccessor(GetBestDestForJumpOnUndef(BB)); in ProcessThreadableEdges()
1578 if (PredTerm->getSuccessor(i) == BB) { in ThreadEdge()
1756 AddPHINodeEntriesForMappedBlock(BBBranch->getSuccessor(0), BB, PredBB, in DuplicateCondBranchOnPHIIntoPred()
1758 AddPHINodeEntriesForMappedBlock(BBBranch->getSuccessor(1), BB, PredBB, in DuplicateCondBranchOnPHIIntoPred()