[llvm] [AMDGPU] Skip lowerNonKernelLDSAccesses if function is declaration. (PR #106975)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 07:12:22 PDT 2024


================
@@ -1226,6 +1228,8 @@ bool AMDGPUSwLowerLDS::run() {
       auto &K = FuncLDSAccessInfo.NonKernelToLDSAccessMap;
       if (K.find(Func) != K.end())
         continue;
+      if (Func->isDeclaration())
+        continue;
----------------
skc7 wrote:

Fixed this in latest commit. Skipped adding function to map if its a declaration.

https://github.com/llvm/llvm-project/pull/106975


More information about the llvm-commits mailing list