mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
[MemorySSA] Move two verify calls under expensive checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370831 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user