[PATCH] D144233: [amdgpu] Implement dynamic LDS accesses from non-kernel functions
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 06:21:42 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp:188
+bool isDynamicLDS(const GlobalVariable *GV) {
+ if (AMDGPU::isLDSVariableToLower(*GV)) {
+ if (!GV->hasInitializer()) {
----------------
I think this is call is only adding confusion. Just GV->getAddressSpace() == local && !GV->hasInitializer?
I also don't think checking the initializer is quite right. AMDGPUPromoteAlloca checks for GV->hasExternalLinkage() && AllocSize == 0.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144233/new/
https://reviews.llvm.org/D144233
More information about the llvm-commits
mailing list