[llvm] 9932d4d - [SCEV] Fix unused variable warning (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 11 12:04:04 PST 2021
Author: Nikita Popov
Date: 2021-12-11T21:03:54+01:00
New Revision: 9932d4db0d33276a880d0bd1922555a40c08f3d2
URL: https://github.com/llvm/llvm-project/commit/9932d4db0d33276a880d0bd1922555a40c08f3d2
DIFF: https://github.com/llvm/llvm-project/commit/9932d4db0d33276a880d0bd1922555a40c08f3d2.diff
LOG: [SCEV] Fix unused variable warning (NFC)
Added:
Modified:
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 2e2aa76329de..8ea448e34dac 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -13057,11 +13057,13 @@ void ScalarEvolution::verify() const {
Worklist.append(L->begin(), L->end());
}
for (auto &KV : ValueExprMap) {
+#ifndef NDEBUG
// Check for SCEV expressions referencing invalid/deleted loops.
if (auto *AR = dyn_cast<SCEVAddRecExpr>(KV.second)) {
assert(ValidLoops.contains(AR->getLoop()) &&
"AddRec references invalid loop");
}
+#endif
// Check that the value is also part of the reverse map.
auto It = ExprValueMap.find(KV.second);
More information about the llvm-commits
mailing list