[all-commits] [llvm/llvm-project] 954ab8: [AMDGPU] Include unused preload kernarg in KD tota...

Austin Kerbow via All-commits all-commits at lists.llvm.org
Mon Sep 23 13:48:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 954ab83e6a8acb7a78936cfa3e2284b1eaf8b722
      https://github.com/llvm/llvm-project/commit/954ab83e6a8acb7a78936cfa3e2284b1eaf8b722
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2024-09-23 (Mon, 23 Sep 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
    M llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
    A llvm/test/CodeGen/AMDGPU/amdhsa-kernarg-preload-num-sgprs.ll
    A llvm/test/MC/AMDGPU/amdhsa-kd-kernarg-preload.s

  Log Message:
  -----------
  [AMDGPU] Include unused preload kernarg in KD total SGPR count (#104743)

Unlike with implicitly preloaded data UserSGPRs firmware is unable to
handle cases where SGPRs for kernel arguments contain preloaded data but
not are not explicitly referenced in the kernel. We need to include
these preloaded SGPRs in the GRANULATED_WAVEFRONT_SGPR_COUNT calculation
to not clobber SGPRs in adjacent waves.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list