[llvm] 0d1b526 - [MachineVerifier] Try harder to verify LiveStacks
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 12 01:57:41 PDT 2022
Author: Jay Foad
Date: 2022-07-12T09:54:54+01:00
New Revision: 0d1b5268e8e1dc799c4b5734c0cb4a61168c58b7
URL: https://github.com/llvm/llvm-project/commit/0d1b5268e8e1dc799c4b5734c0cb4a61168c58b7
DIFF: https://github.com/llvm/llvm-project/commit/0d1b5268e8e1dc799c4b5734c0cb4a61168c58b7.diff
LOG: [MachineVerifier] Try harder to verify LiveStacks
Verify the LiveStacks analysis after a pass that claims to preserve it,
even if there are no further passes (apart from the verifier itself)
that would use the analysis.
Differential Revision: https://reviews.llvm.org/D129200
Added:
Modified:
llvm/lib/CodeGen/MachineVerifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index db04f2bcc095..7a008bae726e 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -293,6 +293,7 @@ namespace {
}
void getAnalysisUsage(AnalysisUsage &AU) const override {
+ AU.addUsedIfAvailable<LiveStacks>();
AU.setPreservesAll();
MachineFunctionPass::getAnalysisUsage(AU);
}
More information about the llvm-commits
mailing list