[llvm] 04b9a70 - [SCEV][NFC] Get rid of redundant constructor, replace with default parameter
Max Kazantsev via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 24 21:17:04 PST 2022
Author: Max Kazantsev
Date: 2022-11-25T12:07:41+07:00
New Revision: 04b9a70fecd832be448602dcf05077c8aed2584a
URL: https://github.com/llvm/llvm-project/commit/04b9a70fecd832be448602dcf05077c8aed2584a
DIFF: https://github.com/llvm/llvm-project/commit/04b9a70fecd832be448602dcf05077c8aed2584a.diff
LOG: [SCEV][NFC] Get rid of redundant constructor, replace with default parameter
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 8aacdf1722e3..fd6bf27bbd34 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolution.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -1335,13 +1335,12 @@ class ScalarEvolution {
ExitLimit(
const SCEV *E, const SCEV *M, bool MaxOrZero,
- ArrayRef<const SmallPtrSetImpl<const SCEVPredicate *> *> PredSetList);
+ ArrayRef<const SmallPtrSetImpl<const SCEVPredicate *> *> PredSetList =
+ None);
ExitLimit(const SCEV *E, const SCEV *M, bool MaxOrZero,
const SmallPtrSetImpl<const SCEVPredicate *> &PredSet);
- ExitLimit(const SCEV *E, const SCEV *M, bool MaxOrZero);
-
/// Test whether this ExitLimit contains any computed information, or
/// whether it's all SCEVCouldNotCompute values.
bool hasAnyInfo() const {
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 85da43df34f6..bffed1883d22 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -8630,11 +8630,6 @@ ScalarEvolution::ExitLimit::ExitLimit(
: ExitLimit(E, M, MaxOrZero, {&PredSet}) {
}
-ScalarEvolution::ExitLimit::ExitLimit(const SCEV *E, const SCEV *M,
- bool MaxOrZero)
- : ExitLimit(E, M, MaxOrZero, None) {
-}
-
/// Allocate memory for BackedgeTakenInfo and copy the not-taken count of each
/// computable exit into a persistent ExitNotTakenInfo array.
ScalarEvolution::BackedgeTakenInfo::BackedgeTakenInfo(
More information about the llvm-commits
mailing list