Lines Matching refs:BI
2014 if (BranchInst *BI = dyn_cast<BranchInst>(I)) {
2015 if (!BI->isConditional())
2018 if (isa<Constant>(BI->getCondition()))
2019 return processFoldableCondBr(BI);
2021 Value *BranchCond = BI->getCondition();
2022 BasicBlock *TrueSucc = BI->getSuccessor(0);
2023 BasicBlock *FalseSucc = BI->getSuccessor(1);
2028 BasicBlock *Parent = BI->getParent();
2177 // (and incrementing BI before processing an instruction).
2187 for (BasicBlock::iterator BI = BB->begin(), BE = BB->end();
2188 BI != BE;) {
2190 ChangedFunction |= replaceOperandsForInBlockEquality(&*BI);
2191 ChangedFunction |= processInstruction(&*BI);
2194 ++BI;
2202 bool AtStart = BI == BB->begin();
2204 --BI;
2218 BI = BB->begin();
2220 ++BI;
2464 for (BasicBlock::iterator BI = CurrentBlock->begin(),
2466 BI != BE;) {
2467 Instruction *CurInst = &*BI++;
2644 bool GVN::processFoldableCondBr(BranchInst *BI) {
2645 if (!BI || BI->isUnconditional())
2649 if (BI->getSuccessor(0) == BI->getSuccessor(1))
2652 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition());
2657 Cond->getZExtValue() ? BI->getSuccessor(1) : BI->getSuccessor(0);
2662 DeadRoot = splitCriticalEdges(BI->getParent(), DeadRoot);