diff options
-rw-r--r-- | llvm/lib/Transforms/Scalar/NewGVN.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index 81b29b6c28f..506e9ea8faf 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -2643,6 +2643,7 @@ void NewGVN::verifyIterationSettled(Function &F) { // if we don't erase the old store expressions from the table, a load can find // a no-longer valid StoreExpression. void NewGVN::verifyStoreExpressions() const { +#ifndef NDEBUG DenseSet<std::pair<const Value *, const Value *>> StoreExpressionSet; for (const auto &KV : ExpressionToClass) { if (auto *SE = dyn_cast<StoreExpression>(KV.first)) { @@ -2657,6 +2658,7 @@ void NewGVN::verifyStoreExpressions() const { "StoreExpression for value"); } } +#endif } // This is the main value numbering loop, it iterates over the initial touched |