Skip to content

Commit

Permalink
[MachineVerifier] Try harder to verify LiveVariables
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jayfoad committed Oct 21, 2022
1 parent d7fecf2 commit d4650d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/CodeGen/MachineVerifier.cpp
Expand Up @@ -294,6 +294,7 @@ namespace {

void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addUsedIfAvailable<LiveStacks>();
AU.addUsedIfAvailable<LiveVariables>();
AU.setPreservesAll();
MachineFunctionPass::getAnalysisUsage(AU);
}
Expand Down

0 comments on commit d4650d0

Please sign in to comment.