[llvm] [AMDGPU] Skip register uses in AMDGPUResourceUsageAnalysis (PR #133242)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 03:22:12 PDT 2025
================
@@ -974,6 +974,19 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction,
return NumUserSGPRs + NumSystemSGPRs;
}
+ unsigned getNumPreloadedVGPRs() const {
----------------
jayfoad wrote:
Does this need to handle all the other things that can get preloaded in VGPRs for graphics shaders? Or can you comment (or assert) that it is only for compute shaders?
Does this correctly handle the way that workitemidx/y/z are all packed into v0 in GFX11+?
https://github.com/llvm/llvm-project/pull/133242
More information about the llvm-commits
mailing list