[llvm] d4650d0 - [MachineVerifier] Try harder to verify LiveVariables

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 08:33:32 PDT 2022


Author: Jay Foad
Date: 2022-10-21T16:31:09+01:00
New Revision: d4650d0938e290ca9d6544d6b07da2fb7156762d

URL: https://github.com/llvm/llvm-project/commit/d4650d0938e290ca9d6544d6b07da2fb7156762d
DIFF: https://github.com/llvm/llvm-project/commit/d4650d0938e290ca9d6544d6b07da2fb7156762d.diff

LOG: [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

Added: 
    

Modified: 
    llvm/lib/CodeGen/MachineVerifier.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 011d60d08dda..6ef36d86891a 100644
--- 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);
     }


        


More information about the llvm-commits mailing list