1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

[AMDGPU] Fix number of reserved SGPRs on CI to reflect flat scratch use

Differential Revision: https://reviews.llvm.org/D27225

llvm-svn: 289095
This commit is contained in:
Stanislav Mekhanoshin 2016-12-08 20:07:23 +00:00
parent c57e18e32f
commit e735965677

View File

@ -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.
}