Skip to content

Commit d4650d0

Browse files
committed
[MachineVerifier] Try harder to verify LiveVariables
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
1 parent d7fecf2 commit d4650d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/CodeGen/MachineVerifier.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ namespace {
294294

295295
void getAnalysisUsage(AnalysisUsage &AU) const override {
296296
AU.addUsedIfAvailable<LiveStacks>();
297+
AU.addUsedIfAvailable<LiveVariables>();
297298
AU.setPreservesAll();
298299
MachineFunctionPass::getAnalysisUsage(AU);
299300
}

0 commit comments

Comments
 (0)