[llvm] [AMDGPU] Fix hidden kernarg preload count inconsistency (PR #116759)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 13:56:04 PST 2024
================
@@ -748,6 +748,10 @@ GCNUserSGPRUsageInfo::GCNUserSGPRUsageInfo(const Function &F,
FlatScratchInit = true;
}
+ if (!AMDGPU::isGraphics(CC) && !IsKernel &&
+ !F.hasFnAttribute("amdgpu-no-lds-kernel-id"))
+ LDSKernelId = true;
+
----------------
arsenm wrote:
The kernel ID has to exist for all callable functions, !graphics will be wrong for amdgpu_gfx. Should be not entry function cc?
https://github.com/llvm/llvm-project/pull/116759
More information about the llvm-commits
mailing list