[llvm] 2a10e3d - [SystemZ] Add pass initialization for `CopyPhysRegs` pass (#132912)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Mar 25 07:02:17 PDT 2025
    
    
  
Author: Dominik Steenken
Date: 2025-03-25T15:02:13+01:00
New Revision: 2a10e3d4b0cb65557580db2de38846b2fbf2bce4
URL: https://github.com/llvm/llvm-project/commit/2a10e3d4b0cb65557580db2de38846b2fbf2bce4
DIFF: https://github.com/llvm/llvm-project/commit/2a10e3d4b0cb65557580db2de38846b2fbf2bce4.diff
LOG: [SystemZ] Add pass initialization for `CopyPhysRegs` pass (#132912)
This commit adds an initialization to `SystemZTargetMachine` for the
`SystemZCopyPhysRegs` pass that was thus far missing. This will enable,
e.g., to run tests for that pass via `llc
--run-pass=systemz-copy-physregs`.
Added: 
    
Modified: 
    llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
Removed: 
    
################################################################################
diff  --git a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
index 092515ee197a8..6300fb72990d0 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
@@ -48,6 +48,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSystemZTarget() {
   initializeSystemZPostRewritePass(PR);
   initializeSystemZTDCPassPass(PR);
   initializeSystemZDAGToDAGISelLegacyPass(PR);
+  initializeSystemZCopyPhysRegsPass(PR);
 }
 
 static std::string computeDataLayout(const Triple &TT) {
        
    
    
More information about the llvm-commits
mailing list