[llvm] e303081 - [X86] Remove redundant initialize*Pass in ctor

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 22:37:17 PST 2024


Author: Fangrui Song
Date: 2024-12-19T22:37:11-08:00
New Revision: e30308196901873a926b6c17304d022eb91fc585

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

LOG: [X86] Remove redundant initialize*Pass in ctor

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86ArgumentStackSlotRebase.cpp
    llvm/lib/Target/X86/X86LowerAMXType.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ArgumentStackSlotRebase.cpp b/llvm/lib/Target/X86/X86ArgumentStackSlotRebase.cpp
index 19c4751e50f719..bf9b8e57305939 100644
--- a/llvm/lib/Target/X86/X86ArgumentStackSlotRebase.cpp
+++ b/llvm/lib/Target/X86/X86ArgumentStackSlotRebase.cpp
@@ -40,9 +40,7 @@ class X86ArgumentStackSlotPass : public MachineFunctionPass {
 public:
   static char ID; // Pass identification, replacement for typeid
 
-  explicit X86ArgumentStackSlotPass() : MachineFunctionPass(ID) {
-    initializeX86ArgumentStackSlotPassPass(*PassRegistry::getPassRegistry());
-  }
+  explicit X86ArgumentStackSlotPass() : MachineFunctionPass(ID) {}
 
   bool runOnMachineFunction(MachineFunction &MF) override;
 

diff  --git a/llvm/lib/Target/X86/X86LowerAMXType.cpp b/llvm/lib/Target/X86/X86LowerAMXType.cpp
index b484b9334e9b17..53091e7bb4dbd1 100644
--- a/llvm/lib/Target/X86/X86LowerAMXType.cpp
+++ b/llvm/lib/Target/X86/X86LowerAMXType.cpp
@@ -1407,9 +1407,7 @@ class X86LowerAMXTypeLegacyPass : public FunctionPass {
 public:
   static char ID;
 
-  X86LowerAMXTypeLegacyPass() : FunctionPass(ID) {
-    initializeX86LowerAMXTypeLegacyPassPass(*PassRegistry::getPassRegistry());
-  }
+  X86LowerAMXTypeLegacyPass() : FunctionPass(ID) {}
 
   bool runOnFunction(Function &F) override {
     // Performance optimization: most code doesn't use AMX, so return early if


        


More information about the llvm-commits mailing list