Lines Matching refs:BackedgeTakenCount
110 Value *linearFunctionTestReplace(Loop *L, const SCEV *BackedgeTakenCount,
1566 const SCEV *BackedgeTakenCount = SE->getBackedgeTakenCount(L); in canExpandBackedgeTakenCount() local
1567 if (isa<SCEVCouldNotCompute>(BackedgeTakenCount) || in canExpandBackedgeTakenCount()
1568 BackedgeTakenCount->isZero()) in canExpandBackedgeTakenCount()
1578 if (Rewriter.isHighCostExpansion(BackedgeTakenCount, L)) in canExpandBackedgeTakenCount()
1912 const SCEV *BackedgeTakenCount, in linearFunctionTestReplace() argument
1919 const SCEV *IVCount = BackedgeTakenCount; in linearFunctionTestReplace()
1928 IVCount = SE->getAddExpr(BackedgeTakenCount, in linearFunctionTestReplace()
1929 SE->getOne(BackedgeTakenCount->getType())); in linearFunctionTestReplace()
1972 if (IVCount != BackedgeTakenCount && Count == 0) { in linearFunctionTestReplace()
2118 const SCEV *BackedgeTakenCount = SE->getBackedgeTakenCount(L); in run() local
2142 !isa<SCEVCouldNotCompute>(BackedgeTakenCount)) in run()
2151 PHINode *IndVar = FindLoopCounter(L, BackedgeTakenCount, SE, DT); in run()
2161 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(BackedgeTakenCount); in run()
2163 (void)linearFunctionTestReplace(L, BackedgeTakenCount, IndVar, in run()
2199 if (VerifyIndvars && !isa<SCEVCouldNotCompute>(BackedgeTakenCount)) { in run()
2202 if (SE->getTypeSizeInBits(BackedgeTakenCount->getType()) < in run()
2205 BackedgeTakenCount->getType()); in run()
2207 BackedgeTakenCount = SE->getTruncateOrNoop(BackedgeTakenCount, in run()
2209 assert(BackedgeTakenCount == NewBECount && "indvars must preserve SCEV"); in run()