diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-11-21 16:58:37 -0800 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-11-21 17:01:24 -0800 |
commit | fa09dddd70c557bd3e78bbeef1511e737c4b8049 (patch) | |
tree | 7719cab294e2becefd574c70bfcc48f4fca0dac7 /llvm/lib | |
parent | e5b603a4c32044932c3a1d26ccbc7d43fec939d5 (diff) | |
download | bcm5719-llvm-fa09dddd70c557bd3e78bbeef1511e737c4b8049.tar.gz bcm5719-llvm-fa09dddd70c557bd3e78bbeef1511e737c4b8049.zip |
[LoopInstSimplify] Move MemorySSA verification under flag.
The verification inside loop passes should be done under the
VerifyMemorySSA flag (enabled by EXPESIVE_CHECKS or explicitly with
opt), in order to not add to compile time during regular builds.
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp b/llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp index 30a71d2f285..901204181a7 100644 --- a/llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp @@ -227,7 +227,8 @@ PreservedAnalyses LoopInstSimplifyPass::run(Loop &L, LoopAnalysisManager &AM, Optional<MemorySSAUpdater> MSSAU; if (AR.MSSA) { MSSAU = MemorySSAUpdater(AR.MSSA); - AR.MSSA->verifyMemorySSA(); + if (VerifyMemorySSA) + AR.MSSA->verifyMemorySSA(); } if (!simplifyLoopInst(L, AR.DT, AR.LI, AR.AC, AR.TLI, MSSAU.hasValue() ? MSSAU.getPointer() : nullptr)) |