[llvm] 4fc18de - AMDGPU: Clear NoPHIs property in SIOptimizeVGPRLiveRanges

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 6 08:02:07 PST 2022


Author: Matt Arsenault
Date: 2022-01-06T11:01:51-05:00
New Revision: 4fc18de3359442ef777ce4965619f611dd7b0d06

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

LOG: AMDGPU: Clear NoPHIs property in SIOptimizeVGPRLiveRanges

Fixes verifier error when writing MIR tests that didn't have phis to
begin with.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp b/llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
index 6bf6c45d8cf6f..cea63d72de81f 100644
--- a/llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
+++ b/llvm/lib/Target/AMDGPU/SIOptimizeVGPRLiveRange.cpp
@@ -155,6 +155,11 @@ class SIOptimizeVGPRLiveRange : public MachineFunctionPass {
     return MachineFunctionProperties().set(
         MachineFunctionProperties::Property::IsSSA);
   }
+
+  MachineFunctionProperties getClearedProperties() const override {
+    return MachineFunctionProperties().set(
+        MachineFunctionProperties::Property::NoPHIs);
+  }
 };
 
 } // end anonymous namespace


        


More information about the llvm-commits mailing list