Lines Matching refs:SCEVAddRecExpr
439 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) in DoInitialMatch()
496 return isa<SCEVAddRecExpr>(S) && (cast<SCEVAddRecExpr>(S)->getLoop() == &L); in containsAddRecDependentOnLoop()
668 static bool isAddRecSExtable(const SCEVAddRecExpr *AR, ScalarEvolution &SE) { in isAddRecSExtable()
671 return isa<SCEVAddRecExpr>(SE.getSignExtendExpr(AR, WideTy)); in isAddRecSExtable()
731 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(LHS)) { in getExactSDiv()
813 } else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) { in ExtractImmediate()
839 } else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) { in ExtractSymbol()
951 static bool isExistingPhi(const SCEVAddRecExpr *AR, ScalarEvolution &SE) { in isExistingPhi()
1026 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) { in isHighCostExpansion()
1266 if (const auto *S = dyn_cast<SCEVAddRecExpr>(Reg)) in getSetupCost()
1284 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(Reg)) { in RateRegister()
2172 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(SE.getSCEV(PH)); in OptimizeShadowIV()
2357 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(IV); in OptimizeMax()
2715 if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) { in CollectInterestingTypesAndFactors()
2774 if (const SCEVAddRecExpr *AR = in findIVOperand()
2775 dyn_cast<SCEVAddRecExpr>(SE.getSCEV(Oper))) { in findIVOperand()
2830 return getExprBase(cast<SCEVAddRecExpr>(S)->getStart()); in getExprBase()
3002 if (!isa<SCEVAddRecExpr>(LastIncExpr)) in ChainInstruction()
3616 } else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) { in CollectSubexprs()
3625 if (Remainder && (AR->getLoop() == L || !isa<SCEVAddRecExpr>(Remainder))) { in CollectSubexprs()
3663 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S); in mayUsePostIncMode()
3924 if (auto *GAR = dyn_cast<SCEVAddRecExpr>(G)) { in GenerateConstantOffsetsImpl()
4111 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(Base.BaseRegs[i]); in GenerateScales()
4974 if (isa<SCEVAddRecExpr>(BaseReg)) in NarrowSearchSpaceByDeletingCostlyFormulas()
4982 if (isa<SCEVAddRecExpr>(ScaledReg)) in NarrowSearchSpaceByDeletingCostlyFormulas()
5023 (isa<SCEVAddRecExpr>(Best) && isa<SCEVAddRecExpr>(Reg) && in IsSimplerBaseSCEVForTarget()
5024 cast<SCEVAddRecExpr>(Best)->getLoop() != in IsSimplerBaseSCEVForTarget()
5025 cast<SCEVAddRecExpr>(Reg)->getLoop())) in IsSimplerBaseSCEVForTarget()
6192 } else if (isa<SCEVAddRecExpr>(S)) { in pushSCEV()
6228 bool SCEVToValueExpr(const llvm::SCEVAddRecExpr &SAR, ScalarEvolution &SE) { in SCEVToValueExpr()
6231 if (isa<SCEVAddRecExpr>(SAR.getStart())) in SCEVToValueExpr()
6271 if (!isa<SCEVAddRecExpr>(S)) in createIterCountExpr()
6277 const auto *Rec = cast<SCEVAddRecExpr>(S); in createIterCountExpr()
6298 bool SCEVToIterCountExpr(const llvm::SCEVAddRecExpr &SAR, in SCEVToIterCountExpr()
6301 if (isa<SCEVAddRecExpr>(SAR.getStart())) { in SCEVToIterCountExpr()
6640 if (const SCEVAddRecExpr *IVAddRec = in DbgRewriteSalvageableDVIs()
6641 dyn_cast<SCEVAddRecExpr>(SCEVInductionVar)) { in DbgRewriteSalvageableDVIs()
6737 if (const SCEVAddRecExpr *Rec = dyn_cast<SCEVAddRecExpr>(SE.getSCEV(P))) in GetInductionVariable()
6833 const SCEVAddRecExpr *AddRec = dyn_cast<SCEVAddRecExpr>(SE.getSCEV(&PN)); in canFoldTermCondOfLoop()
6855 const SCEVAddRecExpr *PostInc = AddRec->getPostIncExpr(SE); in canFoldTermCondOfLoop()