aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-06-09 11:49:09 +0200
committerNikita Popov <npopov@redhat.com>2023-06-09 11:51:53 +0200
commitc1aa0dce48ced5c3cdd1b860bd80c0591ccdc4ed (patch)
tree448cb8637708c127699aa6ded7f77608aa2274fc /llvm/lib/Analysis/ScalarEvolution.cpp
parent4bef782a6a4aee12b977d243c07ec5e2a9525bb9 (diff)
downloadllvm-c1aa0dce48ced5c3cdd1b860bd80c0591ccdc4ed.zip
llvm-c1aa0dce48ced5c3cdd1b860bd80c0591ccdc4ed.tar.gz
llvm-c1aa0dce48ced5c3cdd1b860bd80c0591ccdc4ed.tar.bz2
[SCEV] Remove -verify-scev-maps flag
This is now checked as part of the usual SCEV verification. There is little value in checking this on each lookup. These two maps are strictly synchronized nowadays, which was not the case historically.
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index dc13e5b..7272fde 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -161,10 +161,6 @@ static cl::opt<bool, true> VerifySCEVOpt(
static cl::opt<bool> VerifySCEVStrict(
"verify-scev-strict", cl::Hidden,
cl::desc("Enable stricter verification with -verify-scev is passed"));
-static cl::opt<bool>
- VerifySCEVMap("verify-scev-maps", cl::Hidden,
- cl::desc("Verify no dangling value in ScalarEvolution's "
- "ExprValueMap (slow)"));
static cl::opt<bool> VerifyIR(
"scev-verify-ir", cl::Hidden,
@@ -4458,13 +4454,6 @@ ArrayRef<Value *> ScalarEvolution::getSCEVValues(const SCEV *S) {
ExprValueMapType::iterator SI = ExprValueMap.find_as(S);
if (SI == ExprValueMap.end())
return std::nullopt;
-#ifndef NDEBUG
- if (VerifySCEVMap) {
- // Check there is no dangling Value in the set returned.
- for (Value *V : SI->second)
- assert(ValueExprMap.count(V));
- }
-#endif
return SI->second.getArrayRef();
}