summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2019-09-04 00:44:54 +0000
committerAlina Sbirlea <asbirlea@google.com>2019-09-04 00:44:54 +0000
commit594f0e0927f4e5e782d4a7b0ed8153925d35dd5d (patch)
treea6da903f4081d9ec8dac8ea45c9f10849ca46c9d /llvm/lib/Analysis
parent954d6d661f334f5752a441b7e00b384a58bf1bab (diff)
downloadbcm5719-llvm-594f0e0927f4e5e782d4a7b0ed8153925d35dd5d.tar.gz
bcm5719-llvm-594f0e0927f4e5e782d4a7b0ed8153925d35dd5d.zip
[MemorySSA] Move two verify calls under expensive checks.
llvm-svn: 370831
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/MemorySSA.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/MemorySSA.cpp b/llvm/lib/Analysis/MemorySSA.cpp
index ac95017af17..d41fe15fa07 100644
--- a/llvm/lib/Analysis/MemorySSA.cpp
+++ b/llvm/lib/Analysis/MemorySSA.cpp
@@ -1872,7 +1872,7 @@ void MemorySSA::verifyMemorySSA() const {
}
void MemorySSA::verifyPrevDefInPhis(Function &F) const {
-#ifndef NDEBUG
+#if !defined(NDEBUG) && defined(EXPENSIVE_CHECKS)
for (const BasicBlock &BB : F) {
if (MemoryPhi *Phi = getMemoryAccess(&BB)) {
for (unsigned I = 0, E = Phi->getNumIncomingValues(); I != E; ++I) {
@@ -2048,7 +2048,7 @@ void MemorySSA::verifyUseInDefs(MemoryAccess *Def, MemoryAccess *Use) const {
/// accesses and verifying that, for each use, it appears in the
/// appropriate def's use list
void MemorySSA::verifyDefUses(Function &F) const {
-#ifndef NDEBUG
+#if !defined(NDEBUG) && defined(EXPENSIVE_CHECKS)
for (BasicBlock &B : F) {
// Phi nodes are attached to basic blocks
if (MemoryPhi *Phi = getMemoryAccess(&B)) {
OpenPOWER on IntegriCloud