[llvm] [AMDGPU] Skip register uses in AMDGPUResourceUsageAnalysis (PR #133242)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 22 11:49:44 PDT 2025
================
@@ -989,7 +989,10 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
// dispatch registers are function args.
unsigned WaveDispatchNumSGPR = 0, WaveDispatchNumVGPR = 0;
- if (isShader(F.getCallingConv())) {
+ // Shaders that use the init.whole.wave intrinsic sometimes have VGPR
+ // arguments that are only added for the purpose of preserving their inactive
+ // lanes. Skip including them in the VGPR count.
----------------
arsenm wrote:
This sounds like there should be a property of the calling convention
https://github.com/llvm/llvm-project/pull/133242
More information about the llvm-commits
mailing list