[llvm] [AMDGPU] Skip lowerNonKernelLDSAccesses if function is declaration. (PR #106975)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 23:21:04 PDT 2024
================
@@ -1226,6 +1228,8 @@ bool AMDGPUSwLowerLDS::run() {
auto &K = FuncLDSAccessInfo.NonKernelToLDSAccessMap;
if (K.find(Func) != K.end())
continue;
+ if (Func->isDeclaration())
+ continue;
----------------
arsenm wrote:
Do this first before the map lookup
https://github.com/llvm/llvm-project/pull/106975
More information about the llvm-commits
mailing list