Skip to content

Commit 3493438

Browse files
committed
Revert "[AMDGPU] Run LowerLDS at the end of the fullLTO pipeline (#75333)"
This reverts commit 9b98692.
1 parent 92122b0 commit 3493438

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -793,15 +793,6 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(
793793

794794
PM.addPass(createCGSCCToFunctionPassAdaptor(std::move(FPM)));
795795
});
796-
797-
PB.registerFullLinkTimeOptimizationLastEPCallback(
798-
[this](ModulePassManager &PM, OptimizationLevel Level) {
799-
// We want to support the -lto-partitions=N option as "best effort".
800-
// For that, we need to lower LDS earlier in the pipeline before the
801-
// module is partitioned for codegen.
802-
if (EnableLowerModuleLDS)
803-
PM.addPass(AMDGPULowerModuleLDSPass(*this));
804-
});
805796
}
806797

807798
int64_t AMDGPUTargetMachine::getNullPointerValue(unsigned AddrSpace) {

llvm/test/CodeGen/AMDGPU/lto-lower-module-lds.ll

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)