Lines Matching defs:BI
511 if (BranchInst *BI = dyn_cast<BranchInst>((*I)->getTerminator()))
512 if (BI->isConditional()) {
513 if (UndefValue *Cond = dyn_cast<UndefValue>(BI->getCondition())) {
518 BI->setCondition(ConstantInt::get(Cond->getType(),
519 !L->contains(BI->getSuccessor(0))));
631 BranchInst *BI = dyn_cast<BranchInst>(ExitingBlock->getTerminator());
632 if (!BI || !BI->isConditional()) continue;
633 CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition());
640 for (BasicBlock::iterator I = ExitingBlock->begin(); &*I != BI; ) {
666 if (!FoldBranchToCommonDest(BI))
694 BI->getSuccessor(0)->removePredecessor(ExitingBlock);
695 BI->getSuccessor(1)->removePredecessor(ExitingBlock);