git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303201
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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)) {
"StoreExpression for value");
}
}
+#endif
}
// This is the main value numbering loop, it iterates over the initial touched