[llvm] [AMDGPU][LTO] Assume closed world after linking (PR #105845)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 11:47:46 PDT 2024


================
@@ -760,8 +760,11 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
         // module is partitioned for codegen.
         if (EnableLowerModuleLDS)
           PM.addPass(AMDGPULowerModuleLDSPass(*this));
+
+        AMDGPUAttributorOptions Opts;
----------------
shiltian wrote:

Bring these into the `if` block.

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


More information about the llvm-commits mailing list