[all-commits] [llvm/llvm-project] 544701: [AMDGPU] Add inreg support for SGPR arguments (#67...

Jun Wang via All-commits all-commits at lists.llvm.org
Wed Nov 8 11:36:05 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54470176afe20b16e6b026ab989591d1d19ad2b7
      https://github.com/llvm/llvm-project/commit/54470176afe20b16e6b026ab989591d1d19ad2b7
  Author: Jun Wang <jwang86 at yahoo.com>
  Date:   2023-11-08 (Wed, 08 Nov 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCallingConv.td
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/test/Analysis/UniformityAnalysis/AMDGPU/always_uniform.ll
    M llvm/test/Analysis/UniformityAnalysis/AMDGPU/kernel-args.ll
    A llvm/test/CodeGen/AMDGPU/function-args-inreg.ll
    M llvm/test/CodeGen/AMDGPU/vcmp-saveexec-to-vcmpx.ll

  Log Message:
  -----------
  [AMDGPU] Add inreg support for SGPR arguments (#67182)

Function parameters marked with inreg are supposed to be allocated to
SGPRs. However, for compute functions, this is ignored and function
parameters are allocated to VGPRs. This fix modifies CC_AMDGPU_Func in
AMDGPUCallingConv.td to use SGPRs if input arg is marked inreg.
---------

Co-authored-by: Jun Wang <jun.wang7 at amd.com>




More information about the All-commits mailing list