[PATCH] D74505: [MemorySSA] Don't verify MemorySSA unless VerifyMemorySSA enabled
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 13 09:47:42 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf0b57d807185: [MemorySSA] Don't verify MemorySSA unless VerifyMemorySSA enabled (authored by nikic).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74505/new/
https://reviews.llvm.org/D74505
Files:
llvm/lib/Analysis/MemorySSA.cpp
Index: llvm/lib/Analysis/MemorySSA.cpp
===================================================================
--- llvm/lib/Analysis/MemorySSA.cpp
+++ llvm/lib/Analysis/MemorySSA.cpp
@@ -2298,7 +2298,10 @@
return false;
}
-void MemorySSAWrapperPass::verifyAnalysis() const { MSSA->verifyMemorySSA(); }
+void MemorySSAWrapperPass::verifyAnalysis() const {
+ if (VerifyMemorySSA)
+ MSSA->verifyMemorySSA();
+}
void MemorySSAWrapperPass::print(raw_ostream &OS, const Module *M) const {
MSSA->print(OS);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74505.244465.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200213/bbaafb1c/attachment.bin>
More information about the llvm-commits
mailing list