Lines Matching refs:BBTerm
269 const TerminatorInst *BBTerm = BB->getTerminator(); in getJumpThreadDuplicationCost() local
272 if (isa<SwitchInst>(BBTerm)) in getJumpThreadDuplicationCost()
276 if (isa<IndirectBrInst>(BBTerm)) in getJumpThreadDuplicationCost()
674 TerminatorInst *BBTerm = BB->getTerminator(); in GetBestDestForJumpOnUndef() local
676 BasicBlock *TestBB = BBTerm->getSuccessor(MinSucc); in GetBestDestForJumpOnUndef()
679 for (unsigned i = 1, e = BBTerm->getNumSuccessors(); i != e; ++i) { in GetBestDestForJumpOnUndef()
680 TestBB = BBTerm->getSuccessor(i); in GetBestDestForJumpOnUndef()
772 TerminatorInst *BBTerm = BB->getTerminator(); in ProcessBlock() local
773 for (unsigned i = 0, e = BBTerm->getNumSuccessors(); i != e; ++i) { in ProcessBlock()
775 BBTerm->getSuccessor(i)->removePredecessor(BB, true); in ProcessBlock()
779 << "' folding undef terminator: " << *BBTerm << '\n'); in ProcessBlock()
780 BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm); in ProcessBlock()
781 BBTerm->eraseFromParent(); in ProcessBlock()