Searched refs:TermBr (Results 1 – 1 of 1) sorted by relevance
2116 BranchInst *TermBr = dyn_cast<BranchInst>(ExitingBlock->getTerminator()); in OptimizeLoopTermCond() local2117 if (!TermBr) in OptimizeLoopTermCond()2120 if (TermBr->isUnconditional() || !isa<ICmpInst>(TermBr->getCondition())) in OptimizeLoopTermCond()2125 ICmpInst *Cond = cast<ICmpInst>(TermBr->getCondition()); in OptimizeLoopTermCond()2195 if (&*++BasicBlock::iterator(Cond) != TermBr) { in OptimizeLoopTermCond()2197 Cond->moveBefore(TermBr); in OptimizeLoopTermCond()2203 ExitingBlock->getInstList().insert(TermBr, Cond); in OptimizeLoopTermCond()2207 TermBr->replaceUsesOfWith(OldCond, Cond); in OptimizeLoopTermCond()