[llvm] [AMDGPU] Set GRANULATED_WAVEFRONT_SGPR_COUNT of compute_pgm_rsrc1 to 0 for gfx10+ (PR #154666)

Janek van Oirschot via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 04:26:53 PDT 2025


JanekvO wrote:

Thanks for the correction!

I believe this doesn't change `SIProgramInfo`'s internal representation of `SGPRBlocks` (e.g., `llvm/test/CodeGen/AMDGPU/gfx10plus-wavefront-sgpr-count.ll` compiled with `-filetype=asm` will still print `SGPRBlocks` as non-zero). Furthermore, this now only affects compute calling convention. I think doing the conditional on `SGPRBlocks` initialization in `AMDGPUAsmPrinter::getSIProgramInfo` should be more general for other cases.

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


More information about the llvm-commits mailing list