@@ -8600,9 +8600,10 @@ ScalarEvolution::ExitLimit::ExitLimit(const SCEV *E)
8600
8600
}
8601
8601
8602
8602
ScalarEvolution::ExitLimit::ExitLimit(
8603
- const SCEV *E, const SCEV *M , bool MaxOrZero,
8603
+ const SCEV *E, const SCEV *ConstantMaxNotTaken , bool MaxOrZero,
8604
8604
ArrayRef<const SmallPtrSetImpl<const SCEVPredicate *> *> PredSetList)
8605
- : ExactNotTaken(E), ConstantMaxNotTaken(M), MaxOrZero(MaxOrZero) {
8605
+ : ExactNotTaken(E), ConstantMaxNotTaken(ConstantMaxNotTaken),
8606
+ MaxOrZero(MaxOrZero) {
8606
8607
// If we prove the max count is zero, so is the symbolic bound. This happens
8607
8608
// in practice due to differences in a) how context sensitive we've chosen
8608
8609
// to be and b) how we reason about bounds implied by UB.
@@ -8620,15 +8621,15 @@ ScalarEvolution::ExitLimit::ExitLimit(
8620
8621
addPredicate(P);
8621
8622
assert((isa<SCEVCouldNotCompute>(E) || !E->getType()->isPointerTy()) &&
8622
8623
"Backedge count should be int");
8623
- assert((isa<SCEVCouldNotCompute>(M) || !M->getType()->isPointerTy()) &&
8624
+ assert((isa<SCEVCouldNotCompute>(ConstantMaxNotTaken) ||
8625
+ !ConstantMaxNotTaken->getType()->isPointerTy()) &&
8624
8626
"Max backedge count should be int");
8625
8627
}
8626
8628
8627
8629
ScalarEvolution::ExitLimit::ExitLimit(
8628
- const SCEV *E, const SCEV *M , bool MaxOrZero,
8630
+ const SCEV *E, const SCEV *ConstantMaxNotTaken , bool MaxOrZero,
8629
8631
const SmallPtrSetImpl<const SCEVPredicate *> &PredSet)
8630
- : ExitLimit(E, M, MaxOrZero, {&PredSet}) {
8631
- }
8632
+ : ExitLimit(E, ConstantMaxNotTaken, MaxOrZero, { &PredSet }) {}
8632
8633
8633
8634
/// Allocate memory for BackedgeTakenInfo and copy the not-taken count of each
8634
8635
/// computable exit into a persistent ExitNotTakenInfo array.
0 commit comments