Lines Matching refs:BranchInst
199 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); in runOnFunction()
692 if (BranchInst *BI = dyn_cast<BranchInst>(Terminator)) { in ProcessBlock()
733 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock()
764 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in ProcessBlock()
792 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
809 BranchInst::Create(CondBr->getSuccessor(ToKeep), CondBr); in ProcessBlock()
846 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
852 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) in ProcessBlock()
1166 else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) in ProcessThreadableEdges()
1242 if (BranchInst *PredBr = dyn_cast<BranchInst>(PredBB->getTerminator())) in ProcessBranchOnPHI()
1464 BranchInst *NewBI =BranchInst::Create(SuccBB, NewBB); in ThreadEdge()
1574 BranchInst *OldPredBranch = dyn_cast<BranchInst>(PredBB->getTerminator()); in DuplicateCondBranchOnPHIIntoPred()
1578 OldPredBranch = cast<BranchInst>(PredBB->getTerminator()); in DuplicateCondBranchOnPHIIntoPred()
1618 BranchInst *BBBranch = cast<BranchInst>(BB->getTerminator()); in DuplicateCondBranchOnPHIIntoPred()
1686 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); in TryToUnfoldSelect()
1703 BranchInst *PredTerm = dyn_cast<BranchInst>(Pred->getTerminator()); in TryToUnfoldSelect()
1734 BranchInst::Create(NewBB, BB, SI->getCondition(), Pred); in TryToUnfoldSelect()