Lines Matching refs:Rewriter
143 bool simplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LoopInfo *LI);
149 bool optimizeLoopExits(Loop *L, SCEVExpander &Rewriter);
152 bool predicateLoopExits(Loop *L, SCEVExpander &Rewriter);
158 PHINode *IndVar, SCEVExpander &Rewriter);
587 SCEVExpander &Rewriter, in simplifyAndExtend() argument
617 Changed |= simplifyUsersOfIV(CurrIV, SE, DT, LI, TTI, DeadInsts, Rewriter, in simplifyAndExtend()
632 if (PHINode *WidePhi = createWideIV(WideIVs.back(), LI, SE, Rewriter, in simplifyAndExtend()
906 SCEVExpander &Rewriter, ScalarEvolution *SE) { in genLoopLimit() argument
929 return Rewriter.expandCodeFor(IVLimit, ARBase->getType(), in genLoopLimit()
941 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument
990 IndVar, ExitingBB, ExitCount, UsePostInc, L, Rewriter, SE); in linearFunctionTestReplace()
1236 SCEVExpander &Rewriter) { in createInvariantCond() argument
1240 Rewriter.setInsertPoint(Preheader->getTerminator()); in createInvariantCond()
1241 auto *LHSV = Rewriter.expandCodeFor(LIP.LHS); in createInvariantCond()
1242 auto *RHSV = Rewriter.expandCodeFor(LIP.RHS); in createInvariantCond()
1255 ScalarEvolution *SE, SCEVExpander &Rewriter) { in createReplacement() argument
1307 return createInvariantCond(L, ExitingBB, *LIP, Rewriter); in createReplacement()
1312 bool SkipLastIter, ScalarEvolution *SE, SCEVExpander &Rewriter, in optimizeLoopExitWithUnknownExitCount() argument
1395 OptimisticSkipLastIter, SE, Rewriter)) { in optimizeLoopExitWithUnknownExitCount()
1548 bool IndVarSimplify::optimizeLoopExits(Loop *L, SCEVExpander &Rewriter) { in optimizeLoopExits() argument
1638 SE, Rewriter, DeadInsts); in optimizeLoopExits()
1718 bool IndVarSimplify::predicateLoopExits(Loop *L, SCEVExpander &Rewriter) { in predicateLoopExits() argument
1738 if (isa<SCEVCouldNotCompute>(ExactBTC) || !Rewriter.isSafeToExpand(ExactBTC)) in predicateLoopExits()
1770 !Rewriter.isSafeToExpand(ExitCount)) in predicateLoopExits()
1846 Rewriter.setInsertPoint(L->getLoopPreheader()->getTerminator()); in predicateLoopExits()
1858 Value *ECV = Rewriter.expandCodeFor(ExitCount); in predicateLoopExits()
1860 ExactBTCV = Rewriter.expandCodeFor(ExactBTC); in predicateLoopExits()
1908 SCEVExpander Rewriter(*SE, DL, "indvars"); in run() local
1910 Rewriter.setDebugType(DEBUG_TYPE); in run()
1919 Rewriter.disableCanonicalMode(); in run()
1920 Changed |= simplifyAndExtend(L, Rewriter, LI); in run()
1927 if (int Rewrites = rewriteLoopExitValues(L, LI, TLI, SE, TTI, Rewriter, DT, in run()
1935 NumElimIV += Rewriter.replaceCongruentIVs(L, DT, DeadInsts, TTI); in run()
1942 if (optimizeLoopExits(L, Rewriter)) { in run()
1952 if (predicateLoopExits(L, Rewriter)) { in run()
1996 if (Rewriter.isHighCostExpansion(ExitCount, L, SCEVCheapExpansionBudget, in run()
2000 if (!Rewriter.isSafeToExpand(ExitCount)) in run()
2005 Rewriter); in run()
2011 Rewriter.clear(); in run()