[PATCH] D103431: [AMDGPU] Fix missing lowering of LDS used in global scope.
Mahesha S via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 10 02:40:01 PDT 2021
hsmhsm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/Utils/AMDGPULDSUtils.cpp:134
+ for (auto *G : GlobalUsers)
+ Ret |= hasUserInstruction(G);
}
----------------
foad wrote:
> Could "return true" early here if any G has instruction users, or use std::any_of which will return early for you.
Correct. Since it does not break any semantics, I will keep it for now, and make suggested code change when I submit any other related patch in near future (we definetely need few more patches sooner than later).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103431/new/
https://reviews.llvm.org/D103431
More information about the llvm-commits
mailing list