[SCEV] Rename getMaxBECount and update comments. NFC
Post commit review comments at D38825.
llvm-svn: 315920
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index f5f569c..6ef11cb 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -9725,11 +9725,11 @@
return getUDivExpr(Delta, Step);
}
-const SCEV *ScalarEvolution::computeMaxBECount(const SCEV *Start,
- const SCEV *Stride,
- const SCEV *End,
- unsigned BitWidth,
- bool IsSigned) {
+const SCEV *ScalarEvolution::computeMaxBECountForLT(const SCEV *Start,
+ const SCEV *Stride,
+ const SCEV *End,
+ unsigned BitWidth,
+ bool IsSigned) {
assert(!isKnownNonPositive(Stride) &&
"Stride is expected strictly positive!");
@@ -9861,7 +9861,7 @@
// bound of the loop (RHS), and the fact that IV does not overflow (which is
// checked above).
if (!isLoopInvariant(RHS, L)) {
- const SCEV *MaxBECount = computeMaxBECount(
+ const SCEV *MaxBECount = computeMaxBECountForLT(
Start, Stride, RHS, getTypeSizeInBits(LHS->getType()), IsSigned);
return ExitLimit(getCouldNotCompute() /* ExactNotTaken */, MaxBECount,
false /*MaxOrZero*/, Predicates);
@@ -9898,8 +9898,8 @@
MaxBECount = BECountIfBackedgeTaken;
MaxOrZero = true;
} else {
- MaxBECount = computeMaxBECount(Start, Stride, RHS,
- getTypeSizeInBits(LHS->getType()), IsSigned);
+ MaxBECount = computeMaxBECountForLT(
+ Start, Stride, RHS, getTypeSizeInBits(LHS->getType()), IsSigned);
}
if (isa<SCEVCouldNotCompute>(MaxBECount) &&