mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 19:15:30 +00:00
[AMDGPU] Fix number of reserved SGPRs on CI to reflect flat scratch use
Differential Revision: https://reviews.llvm.org/D27225 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
545a46b9c2
commit
00f1f5a961
@ -1181,6 +1181,8 @@ unsigned SIRegisterInfo::getNumAddressableSGPRs(const SISubtarget &ST) const {
|
||||
unsigned SIRegisterInfo::getNumReservedSGPRs(const SISubtarget &ST) const {
|
||||
if (ST.getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
|
||||
return 6; // VCC, FLAT_SCRATCH, XNACK.
|
||||
if (ST.getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS)
|
||||
return 4; // VCC, FLAT_SCRATCH.
|
||||
return 2; // VCC.
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user