Index: lib/Target/AMDGPU/SIRegisterInfo.cpp =================================================================== --- lib/Target/AMDGPU/SIRegisterInfo.cpp +++ lib/Target/AMDGPU/SIRegisterInfo.cpp @@ -1122,6 +1122,8 @@ 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. }