From: Jay Foad Date: Wed, 6 Jul 2022 13:00:32 +0000 (+0100) Subject: [MachineVerifier] Try harder to verify LiveStacks X-Git-Tag: upstream/15.0.7~2008 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d1b5268e8e1dc799c4b5734c0cb4a61168c58b7;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index db04f2b..7a008ba 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(); AU.setPreservesAll(); MachineFunctionPass::getAnalysisUsage(AU); }