[llvm] b01be72 - [NFC][CodeGen] Remove unused HasFakeUses MachineFunctionProperty

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 05:59:19 PDT 2024


Author: Stephen Tozer
Date: 2024-10-04T13:58:29+01:00
New Revision: b01be72af0001991400b1e9adaecafd7c4e02d2b

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

LOG: [NFC][CodeGen] Remove unused HasFakeUses MachineFunctionProperty

A previous commit d826b0c9 accidentally added a new MachineFunctionProperty,
HasFakeUses, that was unused by the commit (and results in an
uncovered-switch warning, which was fixed by a separate followup 1811e872);
this patch removes that enum value.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/MachineFunction.h
    llvm/lib/CodeGen/MachineFunction.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index 49a1fc1f9b7e6d..053e7062fb4995 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/include/llvm/CodeGen/MachineFunction.h
@@ -187,7 +187,6 @@ class MachineFunctionProperties {
     TiedOpsRewritten,
     FailsVerification,
     TracksDebugUserValues,
-    HasFakeUses,
     LastProperty = TracksDebugUserValues,
   };
 

diff  --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 57ff2c30a19243..b56888a0f71fe6 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -94,7 +94,6 @@ static const char *getPropertyName(MachineFunctionProperties::Property Prop) {
   // clang-format off
   switch(Prop) {
   case P::FailedISel: return "FailedISel";
-  case P::HasFakeUses: return "HasFakeUses";
   case P::IsSSA: return "IsSSA";
   case P::Legalized: return "Legalized";
   case P::NoPHIs: return "NoPHIs";


        


More information about the llvm-commits mailing list