[llvm] [NFC][AMDGPU] Remove the empty FPM as well as the adaptor to MPM (PR #114558)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 1 09:08:09 PDT 2024


https://github.com/shiltian created https://github.com/llvm/llvm-project/pull/114558

None

>From 8c1d4d20afd8603d16f3e32284deea5f8dd1deaf Mon Sep 17 00:00:00 2001
From: Shilei Tian <i at tianshilei.me>
Date: Fri, 1 Nov 2024 11:53:45 -0400
Subject: [PATCH] [NFC][AMDGPU] Remove the empty FPM as well as the adaptor to
 MPM

---
 llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index d93ec34a703d3d..ad03017aae1c17 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -740,8 +740,6 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
 
   PB.registerPipelineStartEPCallback(
       [](ModulePassManager &PM, OptimizationLevel Level) {
-        FunctionPassManager FPM;
-        PM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM)));
         if (EnableHipStdPar)
           PM.addPass(HipStdParAcceleratorCodeSelectionPass());
       });



More information about the llvm-commits mailing list