Skip to content

Commit 9830738

Browse files
committed
[SCEV][NFC] Rename constructor parameter to match its field name
1 parent 15e4146 commit 9830738

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

llvm/include/llvm/Analysis/ScalarEvolution.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,11 +1334,11 @@ class ScalarEvolution {
13341334
/*implicit*/ ExitLimit(const SCEV *E);
13351335

13361336
ExitLimit(
1337-
const SCEV *E, const SCEV *M, bool MaxOrZero,
1337+
const SCEV *E, const SCEV *ConstantMaxNotTaken, bool MaxOrZero,
13381338
ArrayRef<const SmallPtrSetImpl<const SCEVPredicate *> *> PredSetList =
13391339
None);
13401340

1341-
ExitLimit(const SCEV *E, const SCEV *M, bool MaxOrZero,
1341+
ExitLimit(const SCEV *E, const SCEV *ConstantMaxNotTaken, bool MaxOrZero,
13421342
const SmallPtrSetImpl<const SCEVPredicate *> &PredSet);
13431343

13441344
/// Test whether this ExitLimit contains any computed information, or

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8600,9 +8600,10 @@ ScalarEvolution::ExitLimit::ExitLimit(const SCEV *E)
86008600
}
86018601

86028602
ScalarEvolution::ExitLimit::ExitLimit(
8603-
const SCEV *E, const SCEV *M, bool MaxOrZero,
8603+
const SCEV *E, const SCEV *ConstantMaxNotTaken, bool MaxOrZero,
86048604
ArrayRef<const SmallPtrSetImpl<const SCEVPredicate *> *> PredSetList)
8605-
: ExactNotTaken(E), ConstantMaxNotTaken(M), MaxOrZero(MaxOrZero) {
8605+
: ExactNotTaken(E), ConstantMaxNotTaken(ConstantMaxNotTaken),
8606+
MaxOrZero(MaxOrZero) {
86068607
// If we prove the max count is zero, so is the symbolic bound. This happens
86078608
// in practice due to differences in a) how context sensitive we've chosen
86088609
// to be and b) how we reason about bounds implied by UB.
@@ -8620,15 +8621,15 @@ ScalarEvolution::ExitLimit::ExitLimit(
86208621
addPredicate(P);
86218622
assert((isa<SCEVCouldNotCompute>(E) || !E->getType()->isPointerTy()) &&
86228623
"Backedge count should be int");
8623-
assert((isa<SCEVCouldNotCompute>(M) || !M->getType()->isPointerTy()) &&
8624+
assert((isa<SCEVCouldNotCompute>(ConstantMaxNotTaken) ||
8625+
!ConstantMaxNotTaken->getType()->isPointerTy()) &&
86248626
"Max backedge count should be int");
86258627
}
86268628

86278629
ScalarEvolution::ExitLimit::ExitLimit(
8628-
const SCEV *E, const SCEV *M, bool MaxOrZero,
8630+
const SCEV *E, const SCEV *ConstantMaxNotTaken, bool MaxOrZero,
86298631
const SmallPtrSetImpl<const SCEVPredicate *> &PredSet)
8630-
: ExitLimit(E, M, MaxOrZero, {&PredSet}) {
8631-
}
8632+
: ExitLimit(E, ConstantMaxNotTaken, MaxOrZero, { &PredSet }) {}
86328633

86338634
/// Allocate memory for BackedgeTakenInfo and copy the not-taken count of each
86348635
/// computable exit into a persistent ExitNotTakenInfo array.

0 commit comments

Comments
 (0)