Lines Matching refs:Rewriter
146 bool simplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LoopInfo *LI);
152 bool optimizeLoopExits(Loop *L, SCEVExpander &Rewriter);
155 bool predicateLoopExits(Loop *L, SCEVExpander &Rewriter);
161 PHINode *IndVar, SCEVExpander &Rewriter);
597 SCEVExpander &Rewriter, in simplifyAndExtend() argument
628 Rewriter, &Visitor); in simplifyAndExtend()
644 if (PHINode *WidePhi = createWideIV(WideIVs.back(), LI, SE, Rewriter, in simplifyAndExtend()
918 SCEVExpander &Rewriter, ScalarEvolution *SE) { in genLoopLimit() argument
941 return Rewriter.expandCodeFor(IVLimit, ARBase->getType(), in genLoopLimit()
953 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument
1002 IndVar, ExitingBB, ExitCount, UsePostInc, L, Rewriter, SE); in linearFunctionTestReplace()
1248 SCEVExpander &Rewriter) { in createInvariantCond() argument
1252 Rewriter.setInsertPoint(Preheader->getTerminator()); in createInvariantCond()
1253 auto *LHSV = Rewriter.expandCodeFor(LIP.LHS); in createInvariantCond()
1254 auto *RHSV = Rewriter.expandCodeFor(LIP.RHS); in createInvariantCond()
1267 ScalarEvolution *SE, SCEVExpander &Rewriter) { in createReplacement() argument
1319 return createInvariantCond(L, ExitingBB, *LIP, Rewriter); in createReplacement()
1324 bool SkipLastIter, ScalarEvolution *SE, SCEVExpander &Rewriter, in optimizeLoopExitWithUnknownExitCount() argument
1407 OptimisticSkipLastIter, SE, Rewriter)) { in optimizeLoopExitWithUnknownExitCount()
1560 bool IndVarSimplify::optimizeLoopExits(Loop *L, SCEVExpander &Rewriter) { in optimizeLoopExits() argument
1650 SE, Rewriter, DeadInsts); in optimizeLoopExits()
1730 bool IndVarSimplify::predicateLoopExits(Loop *L, SCEVExpander &Rewriter) { in predicateLoopExits() argument
1750 if (isa<SCEVCouldNotCompute>(ExactBTC) || !Rewriter.isSafeToExpand(ExactBTC)) in predicateLoopExits()
1782 !Rewriter.isSafeToExpand(ExitCount)) in predicateLoopExits()
1858 Rewriter.setInsertPoint(L->getLoopPreheader()->getTerminator()); in predicateLoopExits()
1870 Value *ECV = Rewriter.expandCodeFor(ExitCount); in predicateLoopExits()
1872 ExactBTCV = Rewriter.expandCodeFor(ExactBTC); in predicateLoopExits()
1921 SCEVExpander Rewriter(*SE, DL, "indvars"); in run() local
1923 Rewriter.setDebugType(DEBUG_TYPE); in run()
1932 Rewriter.disableCanonicalMode(); in run()
1933 Changed |= simplifyAndExtend(L, Rewriter, LI); in run()
1940 if (int Rewrites = rewriteLoopExitValues(L, LI, TLI, SE, TTI, Rewriter, DT, in run()
1948 NumElimIV += Rewriter.replaceCongruentIVs(L, DT, DeadInsts, TTI); in run()
1955 if (optimizeLoopExits(L, Rewriter)) { in run()
1965 if (predicateLoopExits(L, Rewriter)) { in run()
2009 if (Rewriter.isHighCostExpansion(ExitCount, L, SCEVCheapExpansionBudget, in run()
2013 if (!Rewriter.isSafeToExpand(ExitCount)) in run()
2018 Rewriter); in run()
2024 Rewriter.clear(); in run()