Skip to content

Commit 4b6c064

Browse files
authored
Revert "[AMDGPU][LTO] Assume closed world after linking (#105845)" (#106000)
This reverts commit 33f3ebc.
1 parent d66cbec commit 4b6c064

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,6 @@ static bool runImpl(Module &M, AnalysisGetter &AG, TargetMachine &TM,
10661066

10671067
Attributor A(Functions, InfoCache, AC);
10681068

1069-
LLVM_DEBUG(dbgs() << "Module " << M.getName() << " is "
1070-
<< (AC.IsClosedWorldModule ? "" : "not ")
1071-
<< "assumed to be a closed world.\n");
1072-
10731069
for (Function &F : M) {
10741070
if (F.isIntrinsic())
10751071
continue;

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -760,12 +760,8 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
760760
// module is partitioned for codegen.
761761
if (EnableLowerModuleLDS)
762762
PM.addPass(AMDGPULowerModuleLDSPass(*this));
763-
764-
if (EnableAMDGPUAttributor && Level != OptimizationLevel::O0) {
765-
AMDGPUAttributorOptions Opts;
766-
Opts.IsClosedWorld = true;
767-
PM.addPass(AMDGPUAttributorPass(*this, Opts));
768-
}
763+
if (EnableAMDGPUAttributor && Level != OptimizationLevel::O0)
764+
PM.addPass(AMDGPUAttributorPass(*this));
769765
});
770766

771767
PB.registerRegClassFilterParsingCallback(

llvm/test/LTO/AMDGPU/gpu-rdc-amdgpu-attrs.ll

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

0 commit comments

Comments
 (0)