forked from OSchip/llvm-project
[SCEV] Use isAvailableAtLoopEntry in the asserts
This is what is supposed to be there.
This commit is contained in:
parent
8bc7185668
commit
cd166fb2ef
|
@ -11836,9 +11836,9 @@ ScalarEvolution::howManyLessThans(const SCEV *LHS, const SCEV *RHS,
|
|||
// so we get a backedge count of zero.
|
||||
const SCEV *BECount = nullptr;
|
||||
auto *OrigStartMinusStride = getMinusSCEV(OrigStart, Stride);
|
||||
assert(isLoopInvariant(OrigStartMinusStride, L) && "Must be!");
|
||||
assert(isLoopInvariant(OrigStart, L) && "Must be!");
|
||||
assert(isLoopInvariant(OrigRHS, L) && "Must be!");
|
||||
assert(isAvailableAtLoopEntry(OrigStartMinusStride, L) && "Must be!");
|
||||
assert(isAvailableAtLoopEntry(OrigStart, L) && "Must be!");
|
||||
assert(isAvailableAtLoopEntry(OrigRHS, L) && "Must be!");
|
||||
// Can we prove (max(RHS,Start) > Start - Stride?
|
||||
if (isLoopEntryGuardedByCond(L, Cond, OrigStartMinusStride, OrigStart) &&
|
||||
isLoopEntryGuardedByCond(L, Cond, OrigStartMinusStride, OrigRHS)) {
|
||||
|
|
Loading…
Reference in New Issue