Lines Matching refs:ExitVal
632 Value *ExitVal = Rewriter.expandCodeFor(ExitValue, PN->getType(), Inst); in rewriteLoopExitValues() local
634 LLVM_DEBUG(dbgs() << "INDVARS: RLEV: AfterLoopVal = " << *ExitVal in rewriteLoopExitValues()
638 if (!isValidRewrite(Inst, ExitVal)) { in rewriteLoopExitValues()
639 DeadInsts.push_back(ExitVal); in rewriteLoopExitValues()
647 if (auto *ExitInsn = dyn_cast<Instruction>(ExitVal)) in rewriteLoopExitValues()
654 RewritePhiSet.emplace_back(PN, i, ExitVal, HighCost); in rewriteLoopExitValues()
665 Value *ExitVal = Phi.Val; in rewriteLoopExitValues() local
670 DeadInsts.push_back(ExitVal); in rewriteLoopExitValues()
677 PN->setIncomingValue(Phi.Ith, ExitVal); in rewriteLoopExitValues()
686 LI->replacementPreservesLCSSAForm(PN, ExitVal)) { in rewriteLoopExitValues()
687 PN->replaceAllUsesWith(ExitVal); in rewriteLoopExitValues()
748 auto *ExitVal = dyn_cast<PHINode>(PN.getIncomingValue(IncomingValIdx)); in rewriteFirstIterationLoopExitValues() local
751 if (!ExitVal) in rewriteFirstIterationLoopExitValues()
759 int PreheaderIdx = ExitVal->getBasicBlockIndex(LoopPreheader); in rewriteFirstIterationLoopExitValues()
761 assert(ExitVal->getParent() == LoopHeader && in rewriteFirstIterationLoopExitValues()
765 ExitVal->getIncomingValue(PreheaderIdx)); in rewriteFirstIterationLoopExitValues()