[PATCH] D102882: [AMDGPU] Fix module LDS selection

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 20 15:46:15 PDT 2021


rampitec added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp:67
   if (isModuleEntryFunction()) {
-    GlobalVariable *GV = M->getGlobalVariable("llvm.amdgcn.module.lds");
+    GlobalVariable *GV = M->getGlobalVariable("llvm.amdgcn.module.lds", true);
     if (GV) {
----------------
arsenm wrote:
> getNamedGlobal?
Probably. But that's a different change I guess.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102882/new/

https://reviews.llvm.org/D102882



More information about the llvm-commits mailing list