Lines Matching refs:SCEVAddRecExpr
344 if (const SCEVAddRecExpr *A = dyn_cast<SCEVAddRecExpr>(S)) { in FactorOutConstant()
370 for (unsigned i = Ops.size(); i > 0 && isa<SCEVAddRecExpr>(Ops[i-1]); --i) in SimplifyAddOperands()
401 while (const SCEVAddRecExpr *A = dyn_cast<SCEVAddRecExpr>(Ops[i])) { in SplitAddRecs()
692 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) in getRelevantLoop()
1104 const SCEVAddRecExpr *Phi, in canBeCheaplyTransformed()
1105 const SCEVAddRecExpr *Requested, in canBeCheaplyTransformed()
1118 Phi = dyn_cast<SCEVAddRecExpr>(SE.getTruncateOrNoop(Phi, RequestedTy)); in canBeCheaplyTransformed()
1137 static bool IsIncrementNSW(ScalarEvolution &SE, const SCEVAddRecExpr *AR) { in IsIncrementNSW()
1151 static bool IsIncrementNUW(ScalarEvolution &SE, const SCEVAddRecExpr *AR) { in IsIncrementNUW()
1169 SCEVExpander::getAddRecExprPHILiterally(const SCEVAddRecExpr *Normalized, in getAddRecExprPHILiterally()
1203 const SCEVAddRecExpr *PhiSCEV = dyn_cast<SCEVAddRecExpr>(SE.getSCEV(&PN)); in getAddRecExprPHILiterally()
1353 Value *SCEVExpander::expandAddRecExprLiterally(const SCEVAddRecExpr *S) { in expandAddRecExprLiterally()
1360 const SCEVAddRecExpr *Normalized = S; in expandAddRecExprLiterally()
1364 Normalized = cast<SCEVAddRecExpr>(normalizeForPostIncUse(S, Loops, SE)); in expandAddRecExprLiterally()
1373 Normalized = cast<SCEVAddRecExpr>( in expandAddRecExprLiterally()
1393 cast<SCEVAddRecExpr>(SE.getAddRecExpr( in expandAddRecExprLiterally()
1508 Value *SCEVExpander::visitAddRecExpr(const SCEVAddRecExpr *S) { in visitAddRecExpr()
1634 if (isa<SCEVAddRecExpr>(Ext)) in visitAddRecExpr()
1637 const SCEV *V = cast<SCEVAddRecExpr>(NewS)->evaluateAtIteration(IH, SE); in visitAddRecExpr()
2325 assert(cast<SCEVAddRecExpr>(S)->getNumOperands() >= 2 && in isHighCostExpansionHelper()
2327 Cost += costAndCollectOperands<SCEVAddRecExpr>( in isHighCostExpansionHelper()
2364 Value *SCEVExpander::generateOverflowCheck(const SCEVAddRecExpr *AR, in generateOverflowCheck()
2495 const auto *A = cast<SCEVAddRecExpr>(Pred->getExpr()); in expandWrapPredicate()
2594 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) { in follow()