[all-commits] [llvm/llvm-project] 69f7d8: [AMDGPU] Set number vgprs used in PS shaders based...
David Stuttard via All-commits
all-commits at lists.llvm.org
Fri Oct 8 06:25:18 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 69f7d81d0a47781e5d4820873c20f725f3d0236e
https://github.com/llvm/llvm-project/commit/69f7d81d0a47781e5d4820873c20f725f3d0236e
Author: David Stuttard <david.stuttard at amd.com>
Date: 2021-10-08 (Fri, 08 Oct 2021)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
M llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp
M llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.h
A llvm/test/CodeGen/AMDGPU/ps-shader-arg-count.ll
Log Message:
-----------
[AMDGPU] Set number vgprs used in PS shaders based on input registers actually used
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).
Differential Revision: https://reviews.llvm.org/D101633
Change-Id: Idf7c060cbbd5f7e3300102c55ecee3c07f209de6
More information about the All-commits
mailing list