forked from OSchip/llvm-project
[NewGVN] Adjust NDEBUG markers.
This avoids 'used but not defined' warnings in Release builds with GCC. llvm-svn: 298760
This commit is contained in:
parent
b70819e6a2
commit
e9781e7b2f
|
@ -1928,6 +1928,7 @@ bool NewGVN::singleReachablePHIPath(const MemoryAccess *First,
|
||||||
// subject to very rare false negatives. It is only useful for
|
// subject to very rare false negatives. It is only useful for
|
||||||
// testing/debugging.
|
// testing/debugging.
|
||||||
void NewGVN::verifyMemoryCongruency() const {
|
void NewGVN::verifyMemoryCongruency() const {
|
||||||
|
#ifndef NDEBUG
|
||||||
// Anything equivalent in the memory access table should be in the same
|
// Anything equivalent in the memory access table should be in the same
|
||||||
// congruence class.
|
// congruence class.
|
||||||
|
|
||||||
|
@ -1982,6 +1983,7 @@ void NewGVN::verifyMemoryCongruency() const {
|
||||||
"All MemoryPhi arguments should be in the same class");
|
"All MemoryPhi arguments should be in the same class");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify that the sparse propagation we did actually found the maximal fixpoint
|
// Verify that the sparse propagation we did actually found the maximal fixpoint
|
||||||
|
@ -2167,10 +2169,8 @@ bool NewGVN::runGVN() {
|
||||||
|
|
||||||
initializeCongruenceClasses(F);
|
initializeCongruenceClasses(F);
|
||||||
iterateTouchedInstructions();
|
iterateTouchedInstructions();
|
||||||
#ifndef NDEBUG
|
|
||||||
verifyMemoryCongruency();
|
verifyMemoryCongruency();
|
||||||
verifyIterationSettled(F);
|
verifyIterationSettled(F);
|
||||||
#endif
|
|
||||||
|
|
||||||
Changed |= eliminateInstructions(F);
|
Changed |= eliminateInstructions(F);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue