Lines Matching refs:AR
1742 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(Phi)); in FindLoopCounter() local
1743 if (!AR || AR->getLoop() != L || !AR->isAffine()) in FindLoopCounter()
1749 uint64_t PhiWidth = SE->getTypeSizeInBits(AR->getType()); in FindLoopCounter()
1754 const SCEV *Step = dyn_cast<SCEVConstant>(AR->getStepRecurrence(*SE)); in FindLoopCounter()
1776 const SCEV *Init = AR->getStart(); in FindLoopCounter()
1805 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in genLoopLimit() local
1806 assert(AR && AR->getLoop() == L && AR->isAffine() && "bad loop counter"); in genLoopLimit()
1807 const SCEV *IVInit = AR->getStart(); in genLoopLimit()
1832 assert(AR->getStart() == SE->getSCEV(GEPBase) && "bad loop counter"); in genLoopLimit()
1857 if (AR->getStart()->isZero()) in genLoopLimit()
1860 assert(AR->getStepRecurrence(*SE)->isOne() && "only handles unit stride"); in genLoopLimit()
1861 const SCEV *IVInit = AR->getStart(); in genLoopLimit()
1941 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in linearFunctionTestReplace() local
1942 const SCEV *ARStart = AR->getStart(); in linearFunctionTestReplace()
1943 const SCEV *ARStep = AR->getStepRecurrence(*SE); in linearFunctionTestReplace()
2151 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(BackedgeTakenCount); in runOnLoop() local
2152 if (!AR || AR->getLoop()->getLoopPreheader()) in runOnLoop()