[llvm] [AMDGPU] Move `AMDGPUAttributorPass` to full LTO post link stage (PR #102086)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 12:13:30 PDT 2024


================
@@ -734,21 +739,15 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
         PM.addPass(createCGSCCToFunctionPassAdaptor(std::move(FPM)));
       });
 
-  // FIXME: Why is AMDGPUAttributor not in CGSCC?
-  PB.registerOptimizerLastEPCallback(
-      [this](ModulePassManager &MPM, OptimizationLevel Level) {
----------------
shiltian wrote:

Then we will run it twice in LTO.

https://github.com/llvm/llvm-project/pull/102086


More information about the llvm-commits mailing list