[llvm] 890e685 - [SCEV] Drop unused param from new version of computeExitLimitFromICmp [NFC]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 2 10:16:01 PST 2022
Author: Philip Reames
Date: 2022-01-02T10:15:17-08:00
New Revision: 890e6854924be98c7765599d48326f734be05c5c
URL: https://github.com/llvm/llvm-project/commit/890e6854924be98c7765599d48326f734be05c5c
DIFF: https://github.com/llvm/llvm-project/commit/890e6854924be98c7765599d48326f734be05c5c.diff
LOG: [SCEV] Drop unused param from new version of computeExitLimitFromICmp [NFC]
Added:
Modified:
llvm/include/llvm/Analysis/ScalarEvolution.h
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h
index ac7e3a46a6ea..1484d2cdce83 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolution.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -1719,11 +1719,9 @@ class ScalarEvolution {
/// has a materialized ICmp.
ExitLimit computeExitLimitFromICmp(const Loop *L, ICmpInst::Predicate Pred,
const SCEV *LHS, const SCEV *RHS,
- bool ExitIfTrue,
bool IsSubExpr,
bool AllowPredicates = false);
-
/// Compute the number of times the backedge of the specified loop will
/// execute if its exit condition were a switch with a single exiting case
/// to ExitingBB.
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index d80505aef092..d48e81f28af9 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -8203,8 +8203,8 @@ ScalarEvolution::computeExitLimitFromICmp(const Loop *L,
const SCEV *LHS = getSCEV(ExitCond->getOperand(0));
const SCEV *RHS = getSCEV(ExitCond->getOperand(1));
- ExitLimit EL = computeExitLimitFromICmp(L, Pred, LHS, RHS, ExitIfTrue,
- ControlsExit, AllowPredicates);
+ ExitLimit EL = computeExitLimitFromICmp(L, Pred, LHS, RHS, ControlsExit,
+ AllowPredicates);
if (EL.hasAnyInfo()) return EL;
auto *ExhaustiveCount =
@@ -8220,11 +8220,9 @@ ScalarEvolution::ExitLimit
ScalarEvolution::computeExitLimitFromICmp(const Loop *L,
ICmpInst::Predicate Pred,
const SCEV *LHS, const SCEV *RHS,
- bool ExitIfTrue,
bool ControlsExit,
bool AllowPredicates) {
-
// Try to evaluate any dependencies out of the loop.
LHS = getSCEVAtScope(LHS, L);
RHS = getSCEVAtScope(RHS, L);
More information about the llvm-commits
mailing list