Lines Matching refs:Rewriter
59 SCEVExpander &Rewriter; member in __anonb324fb7f0111::SimplifyIndvar
68 SCEVExpander &Rewriter, in SimplifyIndvar() argument
70 : L(Loop), LI(LI), SE(SE), DT(DT), TTI(TTI), Rewriter(Rewriter), in SimplifyIndvar()
230 if (Rewriter.isHighCostExpansion({InvariantLHS, InvariantRHS}, L, in makeIVComparisonInvariant()
232 !Rewriter.isSafeToExpandAt(InvariantLHS, PHTerm) || in makeIVComparisonInvariant()
233 !Rewriter.isSafeToExpandAt(InvariantRHS, PHTerm)) in makeIVComparisonInvariant()
236 Rewriter.expandCodeFor(InvariantLHS, IVOperand->getType(), PHTerm); in makeIVComparisonInvariant()
238 Rewriter.expandCodeFor(InvariantRHS, IVOperand->getType(), PHTerm); in makeIVComparisonInvariant()
648 if (Rewriter.isHighCostExpansion(S, L, SCEVCheapExpansionBudget, TTI, I)) in replaceIVUserWithLoopInvariant()
653 if (!Rewriter.isSafeToExpandAt(S, IP)) { in replaceIVUserWithLoopInvariant()
659 auto *Invariant = Rewriter.expandCodeFor(S, I->getType(), IP); in replaceIVUserWithLoopInvariant()
1014 SCEVExpander &Rewriter, IVVisitor *V) { in simplifyUsersOfIV() argument
1016 Rewriter, Dead); in simplifyUsersOfIV()
1026 SCEVExpander Rewriter(*SE, SE->getDataLayout(), "indvars"); in simplifyLoopIVs() local
1028 Rewriter.setDebugType(DEBUG_TYPE); in simplifyLoopIVs()
1033 simplifyUsersOfIV(cast<PHINode>(I), SE, DT, LI, TTI, Dead, Rewriter); in simplifyLoopIVs()
1137 PHINode *createWideIV(SCEVExpander &Rewriter);
1162 Instruction *widenIVUse(NarrowIVDefUse DU, SCEVExpander &Rewriter,
1836 SCEVExpander &Rewriter, PHINode *OrigPhi, in widenIVUse() argument
1944 Rewriter.hoistIVInc(WideInc, DU.NarrowUse, NeedToRecomputeFlags); in widenIVUse()
2033 PHINode *WidenIV::createWideIV(SCEVExpander &Rewriter) { in createWideIV() argument
2078 Value *ExpandInst = Rewriter.expandCodeFor(AddRec, WideType, InsertPt); in createWideIV()
2086 Rewriter.isInsertedInstruction(cast<Instruction>(ExpandInst))) in createWideIV()
2141 Instruction *WideUse = widenIVUse(DU, Rewriter, OrigPhi, WidePhi); in createWideIV()
2265 LoopInfo *LI, ScalarEvolution *SE, SCEVExpander &Rewriter, in createWideIV() argument
2270 PHINode *WidePHI = Widener.createWideIV(Rewriter); in createWideIV()