[llvm] 0243057 - [MachineVerifier] Try harder to verify LiveVariables
    Jay Foad via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 25 01:22:15 PDT 2022
    
    
  
Author: Jay Foad
Date: 2022-10-25T09:21:51+01:00
New Revision: 0243057304132b143e548436244722d3d70b2832
URL: https://github.com/llvm/llvm-project/commit/0243057304132b143e548436244722d3d70b2832
DIFF: https://github.com/llvm/llvm-project/commit/0243057304132b143e548436244722d3d70b2832.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 011d60d08dda9..6ef36d86891a1 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