Skip to content

Commit 9f0b736

Browse files
committed
[AMDGPU] Add AGPRs to getRegClassForSizeOnBank
Differential Revision: https://reviews.llvm.org/D79761
1 parent 8c72b02 commit 9f0b736

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,8 @@ SIRegisterInfo::getRegClassForSizeOnBank(unsigned Size,
17201720
: &AMDGPU::SReg_64_XEXECRegClass;
17211721
case AMDGPU::SGPRRegBankID:
17221722
return getSGPRClassForBitWidth(std::max(32u, Size));
1723+
case AMDGPU::AGPRRegBankID:
1724+
return getAGPRClassForBitWidth(std::max(32u, Size));
17231725
default:
17241726
llvm_unreachable("unknown register bank");
17251727
}

0 commit comments

Comments
 (0)