[PATCH] D109773: [AMDGPU] Inline non-kernel functions using extern lds
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 15 05:59:35 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp:125
(AS == AMDGPUAS::LOCAL_ADDRESS &&
- !AMDGPUTargetMachine::EnableLowerModuleLDS))
+ (!AMDGPUTargetMachine::EnableLowerModuleLDS || !GV.hasInitializer())))
recursivelyVisitUsers(GV, FuncsToAlwaysInline);
----------------
What does the hasInitializer check have to do with this? Initializers are illegal for LDS anyway
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109773/new/
https://reviews.llvm.org/D109773
More information about the llvm-commits
mailing list