Skip to content

Commit b661a55

Browse files
committed
[ScalarEvolution] Remove unused ExitLimit::hasOperand() method (NFC)
We only use BackedgeTakenInfo::hasOperand().
1 parent 7014a10 commit b661a55

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

llvm/include/llvm/Analysis/ScalarEvolution.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,8 +1340,6 @@ class ScalarEvolution {
13401340
!isa<SCEVCouldNotCompute>(MaxNotTaken);
13411341
}
13421342

1343-
bool hasOperand(const SCEV *S) const;
1344-
13451343
/// Test whether this ExitLimit contains all information.
13461344
bool hasFullInfo() const {
13471345
return !isa<SCEVCouldNotCompute>(ExactNotTaken);

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12606,14 +12606,6 @@ bool ScalarEvolution::hasOperand(const SCEV *S, const SCEV *Op) const {
1260612606
return SCEVExprContains(S, [&](const SCEV *Expr) { return Expr == Op; });
1260712607
}
1260812608

12609-
bool ScalarEvolution::ExitLimit::hasOperand(const SCEV *S) const {
12610-
auto IsS = [&](const SCEV *X) { return S == X; };
12611-
auto ContainsS = [&](const SCEV *X) {
12612-
return !isa<SCEVCouldNotCompute>(X) && SCEVExprContains(X, IsS);
12613-
};
12614-
return ContainsS(ExactNotTaken) || ContainsS(MaxNotTaken);
12615-
}
12616-
1261712609
void
1261812610
ScalarEvolution::forgetMemoizedResults(const SCEV *S) {
1261912611
ValuesAtScopes.erase(S);

0 commit comments

Comments
 (0)