summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-03-25 02:40:02 +0000
committerDavide Italiano <davide@freebsd.org>2017-03-25 02:40:02 +0000
commite9781e7b2fc908bd5d6758d2990ea15f0702883f (patch)
tree06efcf2d50234feced102c02fd37bca40bdb6e03 /llvm
parentb70819e6a29ce4134e3f7ae363fb16c311f50959 (diff)
downloadbcm5719-llvm-e9781e7b2fc908bd5d6758d2990ea15f0702883f.tar.gz
bcm5719-llvm-e9781e7b2fc908bd5d6758d2990ea15f0702883f.zip
[NewGVN] Adjust NDEBUG markers.
This avoids 'used but not defined' warnings in Release builds with GCC. llvm-svn: 298760
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index ab7400c562b..9dbafec09df 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -1928,6 +1928,7 @@ bool NewGVN::singleReachablePHIPath(const MemoryAccess *First,
// subject to very rare false negatives. It is only useful for
// testing/debugging.
void NewGVN::verifyMemoryCongruency() const {
+#ifndef NDEBUG
// Anything equivalent in the memory access table should be in the same
// congruence class.
@@ -1982,6 +1983,7 @@ void NewGVN::verifyMemoryCongruency() const {
"All MemoryPhi arguments should be in the same class");
}
}
+#endif
}
// Verify that the sparse propagation we did actually found the maximal fixpoint
@@ -2167,10 +2169,8 @@ bool NewGVN::runGVN() {
initializeCongruenceClasses(F);
iterateTouchedInstructions();
-#ifndef NDEBUG
verifyMemoryCongruency();
verifyIterationSettled(F);
-#endif
Changed |= eliminateInstructions(F);
OpenPOWER on IntegriCloud