[PATCH] D102882: [AMDGPU] Fix module LDS selection
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 20 15:46:44 PDT 2021
arsenm 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) {
----------------
rampitec wrote:
> arsenm wrote:
> > getNamedGlobal?
> Probably. But that's a different change I guess.
No, that's the wrapper that passes true in for you
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102882/new/
https://reviews.llvm.org/D102882
More information about the llvm-commits
mailing list