[PATCH] D98820: [NewPM] Only verify MSSA when VerifyMemorySSA
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 17 14:55:02 PDT 2021
aeubanks created this revision.
aeubanks added a reviewer: asbirlea.
Herald added subscribers: george.burgess.iv, hiraditya, Prazek.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Some compile-time tests are failing due to
https://reviews.llvm.org/D98805, likely due to MemorySSA verification.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98820
Files:
llvm/lib/Transforms/Scalar/LoopPassManager.cpp
Index: llvm/lib/Transforms/Scalar/LoopPassManager.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/LoopPassManager.cpp
+++ llvm/lib/Transforms/Scalar/LoopPassManager.cpp
@@ -14,6 +14,7 @@
#include "llvm/Analysis/MemorySSA.h"
#include "llvm/Analysis/ScalarEvolutionAliasAnalysis.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/TimeProfiler.h"
using namespace llvm;
@@ -297,7 +298,7 @@
// queries. See PR44815.
LAR.DT.verify();
LAR.LI.verify(LAR.DT);
- if (LAR.MSSA)
+ if (LAR.MSSA && VerifyMemorySSA)
LAR.MSSA->verifyMemorySSA();
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98820.331385.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210317/9ee0316d/attachment.bin>
More information about the llvm-commits
mailing list