Lines Matching refs:Rewriter
1966 mutable SCEVExpander Rewriter; member in __anon926e14ea0a11::LSRInstance
3237 Rewriter.clearPostInc(); in GenerateIVChain()
3238 Value *IncV = Rewriter.expandCodeFor(LeftOverExpr, IntTy, InsertPt); in GenerateIVChain()
3241 IVOper = Rewriter.expandCodeFor(IVOperExpr, IVTy, InsertPt); in GenerateIVChain()
3341 if (SE.isLoopInvariant(N, L) && Rewriter.isSafeToExpand(N) && in CollectFixupsAndInitialFormulae()
3421 if (!Rewriter.isSafeToExpand(S)) in InsertInitialFormula()
5379 while (Rewriter.isInsertedInstruction(&*IP) && IP != LowestIP) in AdjustInsertPositionForExpand()
5396 Rewriter.setInsertPoint(&*IP); in Expand()
5400 Rewriter.setPostInc(LF.PostIncLoops); in Expand()
5424 Ops.push_back(SE.getUnknown(Rewriter.expandCodeFor(Reg, nullptr))); in Expand()
5440 SE.getUnknown(Rewriter.expandCodeFor(ScaledS, nullptr))); in Expand()
5447 ICmpScaledV = Rewriter.expandCodeFor(ScaledS, nullptr); in Expand()
5457 Value *FullV = Rewriter.expandCodeFor(SE.getAddExpr(Ops), nullptr); in Expand()
5461 ScaledS = SE.getUnknown(Rewriter.expandCodeFor(ScaledS, nullptr)); in Expand()
5473 Value *FullV = Rewriter.expandCodeFor(SE.getAddExpr(Ops), IntTy); in Expand()
5483 Value *FullV = Rewriter.expandCodeFor(SE.getAddExpr(Ops), Ty); in Expand()
5519 Value *FullV = Rewriter.expandCodeFor(FullS, Ty); in Expand()
5522 Rewriter.clearPostInc(); in Expand()
5775 Rewriter.setChainedPhi(PN); in ImplementSolution()
5785 Rewriter.setIVIncInsertPos(L, InsertPos); in ImplementSolution()
5795 for (const WeakVH &IV : Rewriter.getInsertedIVs()) in ImplementSolution()
5801 Rewriter.clear(); in ImplementSolution()
5859 Rewriter(SE, L->getHeader()->getModule()->getDataLayout(), "lsr", false), in LSRInstance()
5898 Rewriter.setDebugType(DEBUG_TYPE); in LSRInstance()
5900 Rewriter.disableCanonicalMode(); in LSRInstance()
5901 Rewriter.enableLSRMode(); in LSRInstance()
6945 SCEVExpander Rewriter(SE, DL, "lsr", false); in ReduceLoopStrength() local
6947 Rewriter.setDebugType(DEBUG_TYPE); in ReduceLoopStrength()
6949 unsigned numFolded = Rewriter.replaceCongruentIVs(L, &DT, DeadInsts, &TTI); in ReduceLoopStrength()
6965 SCEVExpander Rewriter(SE, DL, "lsr", true); in ReduceLoopStrength() local
6966 int Rewrites = rewriteLoopExitValues(L, &LI, &TLI, &SE, &TTI, Rewriter, &DT, in ReduceLoopStrength()