Lines Matching refs:Rewriter

156   bool simplifyAndExtend(Loop *L, SCEVExpander &Rewriter, LoopInfo *LI);
162 bool optimizeLoopExits(Loop *L, SCEVExpander &Rewriter);
165 bool predicateLoopExits(Loop *L, SCEVExpander &Rewriter);
171 PHINode *IndVar, SCEVExpander &Rewriter);
600 SCEVExpander &Rewriter, in simplifyAndExtend() argument
630 Changed |= simplifyUsersOfIV(CurrIV, SE, DT, LI, TTI, DeadInsts, Rewriter, in simplifyAndExtend()
645 if (PHINode *WidePhi = createWideIV(WideIVs.back(), LI, SE, Rewriter, in simplifyAndExtend()
979 SCEVExpander &Rewriter, ScalarEvolution *SE) { in genLoopLimit() argument
1008 return Rewriter.expandCodeFor(IVLimit, IndVar->getType(), BI); in genLoopLimit()
1051 return Rewriter.expandCodeFor(IVLimit, LimitTy, BI); in genLoopLimit()
1063 PHINode *IndVar, SCEVExpander &Rewriter) { in linearFunctionTestReplace() argument
1112 IndVar, ExitingBB, ExitCount, UsePostInc, L, Rewriter, SE); in linearFunctionTestReplace()
1347 const SCEV *InvariantLHS, const SCEV *InvariantRHS, SCEVExpander &Rewriter, in replaceWithInvariantCond() argument
1350 Rewriter.setInsertPoint(BI); in replaceWithInvariantCond()
1351 auto *LHSV = Rewriter.expandCodeFor(InvariantLHS); in replaceWithInvariantCond()
1352 auto *RHSV = Rewriter.expandCodeFor(InvariantRHS); in replaceWithInvariantCond()
1365 ScalarEvolution *SE, SCEVExpander &Rewriter, in optimizeLoopExitWithUnknownExitCount() argument
1424 Rewriter, DeadInsts); in optimizeLoopExitWithUnknownExitCount()
1563 bool IndVarSimplify::optimizeLoopExits(Loop *L, SCEVExpander &Rewriter) { in optimizeLoopExits() argument
1638 Rewriter, DeadInsts); in optimizeLoopExits()
1721 bool IndVarSimplify::predicateLoopExits(Loop *L, SCEVExpander &Rewriter) { in predicateLoopExits() argument
1741 if (isa<SCEVCouldNotCompute>(ExactBTC) || !Rewriter.isSafeToExpand(ExactBTC)) in predicateLoopExits()
1773 !Rewriter.isSafeToExpand(ExitCount)) in predicateLoopExits()
1849 Rewriter.setInsertPoint(L->getLoopPreheader()->getTerminator()); in predicateLoopExits()
1861 Value *ECV = Rewriter.expandCodeFor(ExitCount); in predicateLoopExits()
1863 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()
2026 Rewriter); in run()
2032 Rewriter.clear(); in run()