Lines Matching refs:Rewriter

58     SCEVExpander     &Rewriter;  member in __anoncf1033750111::SimplifyIndvar
66 SCEVExpander &Rewriter, in SimplifyIndvar() argument
68 : L(Loop), LI(LI), SE(SE), DT(DT), TTI(TTI), Rewriter(Rewriter), in SimplifyIndvar()
222 if (Rewriter.isHighCostExpansion({InvariantLHS, InvariantRHS}, L, in makeIVComparisonInvariant()
224 !Rewriter.isSafeToExpandAt(InvariantLHS, PHTerm) || in makeIVComparisonInvariant()
225 !Rewriter.isSafeToExpandAt(InvariantRHS, PHTerm)) in makeIVComparisonInvariant()
228 Rewriter.expandCodeFor(InvariantLHS, IVOperand->getType(), PHTerm); in makeIVComparisonInvariant()
230 Rewriter.expandCodeFor(InvariantRHS, IVOperand->getType(), PHTerm); in makeIVComparisonInvariant()
634 if (Rewriter.isHighCostExpansion(S, L, SCEVCheapExpansionBudget, TTI, I)) in replaceIVUserWithLoopInvariant()
639 if (!Rewriter.isSafeToExpandAt(S, IP)) { in replaceIVUserWithLoopInvariant()
645 auto *Invariant = Rewriter.expandCodeFor(S, I->getType(), IP); in replaceIVUserWithLoopInvariant()
987 SCEVExpander &Rewriter, IVVisitor *V) { in simplifyUsersOfIV() argument
989 Rewriter, Dead); in simplifyUsersOfIV()
999 SCEVExpander Rewriter(*SE, SE->getDataLayout(), "indvars"); in simplifyLoopIVs() local
1001 Rewriter.setDebugType(DEBUG_TYPE); in simplifyLoopIVs()
1006 simplifyUsersOfIV(cast<PHINode>(I), SE, DT, LI, TTI, Dead, Rewriter); in simplifyLoopIVs()
1109 PHINode *createWideIV(SCEVExpander &Rewriter);
1134 Instruction *widenIVUse(NarrowIVDefUse DU, SCEVExpander &Rewriter);
1734 Instruction *WidenIV::widenIVUse(WidenIV::NarrowIVDefUse DU, SCEVExpander &Rewriter) { in widenIVUse() argument
1832 Rewriter.hoistIVInc(WideInc, DU.NarrowUse)) in widenIVUse()
1917 PHINode *WidenIV::createWideIV(SCEVExpander &Rewriter) { in createWideIV() argument
1962 Value *ExpandInst = Rewriter.expandCodeFor(AddRec, WideType, InsertPt); in createWideIV()
1970 Rewriter.isInsertedInstruction(cast<Instruction>(ExpandInst))) in createWideIV()
2006 Instruction *WideUse = widenIVUse(DU, Rewriter); in createWideIV()
2130 LoopInfo *LI, ScalarEvolution *SE, SCEVExpander &Rewriter, in createWideIV() argument
2135 PHINode *WidePHI = Widener.createWideIV(Rewriter); in createWideIV()