Skip to content

Commit 4135077

Browse files
committed
[AMDGPU] use llvm_unreachable instead of default for rp set
GCC 9.2 seems to incorrectly issue warning about out of bounds access. This situation should not happen in any way. Differential Revision: https://reviews.llvm.org/D75071
1 parent b61e83e commit 4135077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ unsigned SIRegisterInfo::getRegPressureSetLimit(const MachineFunction &MF,
18201820
return getRegPressureLimit(&AMDGPU::SGPR_32RegClass,
18211821
const_cast<MachineFunction &>(MF));
18221822

1823-
return AMDGPUGenRegisterInfo::getRegPressureSetLimit(MF, Idx);
1823+
llvm_unreachable("Unexpected register pressure set!");
18241824
}
18251825

18261826
const int *SIRegisterInfo::getRegUnitPressureSets(unsigned RegUnit) const {

0 commit comments

Comments
 (0)