projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
325927f
)
[MachineVerifier] Try harder to verify LiveVariables
author
Jay Foad
<jay.foad@amd.com>
Wed, 6 Jul 2022 13:00:32 +0000
(14:00 +0100)
committer
Jay Foad
<jay.foad@amd.com>
Tue, 25 Oct 2022 08:21:51 +0000
(09:21 +0100)
Verify the LiveVariables 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/D129213
llvm/lib/CodeGen/MachineVerifier.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineVerifier.cpp
b/llvm/lib/CodeGen/MachineVerifier.cpp
index
011d60d
..
6ef36d8
100644
(file)
--- a/
llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/
llvm/lib/CodeGen/MachineVerifier.cpp
@@
-294,6
+294,7
@@
namespace {
void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addUsedIfAvailable<LiveStacks>();
+ AU.addUsedIfAvailable<LiveVariables>();
AU.setPreservesAll();
MachineFunctionPass::getAnalysisUsage(AU);
}