Skip to content

Commit 73b54f4

Browse files
committedDec 8, 2016
[AMDGPU] Fix number of reserved SGPRs on CI to reflect flat scratch use
Differential Revision: https://reviews.llvm.org/D27225 llvm-svn: 289095
1 parent 1118d59 commit 73b54f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,8 @@ unsigned SIRegisterInfo::getNumAddressableSGPRs(const SISubtarget &ST) const {
11811181
unsigned SIRegisterInfo::getNumReservedSGPRs(const SISubtarget &ST) const {
11821182
if (ST.getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS)
11831183
return 6; // VCC, FLAT_SCRATCH, XNACK.
1184+
if (ST.getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS)
1185+
return 4; // VCC, FLAT_SCRATCH.
11841186
return 2; // VCC.
11851187
}
11861188

0 commit comments

Comments
 (0)