Skip to content

Commit

Permalink
[MemorySSA] Move two verify calls under expensive checks.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370831 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
alinas committed Sep 4, 2019
1 parent e64df0e commit cfef9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Analysis/MemorySSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit cfef9f7

Please sign in to comment.