[PATCH] D101633: [AMDGPU] Set number vgprs used in PS shaders based on input registers actually used
David Stuttard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 30 07:37:00 PDT 2021
dstuttard created this revision.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
dstuttard requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
For PS shaders we can use the input SPI_PS_INPUT_ENA and SPI_PS_INPUT_ADDR
registers
Calculate the number of VGPR registers used as input VGPRs based on these
registers rather than the arguments passed in (this conservatively always
allocates the maximum).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D101633
Files:
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.h
llvm/test/CodeGen/AMDGPU/ps-shader-arg-count.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101633.341899.patch
Type: text/x-patch
Size: 22904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210430/02f2d3e6/attachment-0001.bin>
More information about the llvm-commits
mailing list