AMDGPU/GlobalISel: Simplify assert

This commit is contained in:
Matt Arsenault 2020-01-13 11:02:19 -05:00 committed by Matt Arsenault
parent ffc05d0dbc
commit 7d9b0a61c3
1 changed files with 3 additions and 11 deletions

View File

@ -144,17 +144,9 @@ AMDGPURegisterBankInfo::AMDGPURegisterBankInfo(const GCNSubtarget &ST)
AlreadyInit = true;
const RegisterBank &RBSGPR = getRegBank(AMDGPU::SGPRRegBankID);
(void)RBSGPR;
assert(&RBSGPR == &AMDGPU::SGPRRegBank);
const RegisterBank &RBVGPR = getRegBank(AMDGPU::VGPRRegBankID);
(void)RBVGPR;
assert(&RBVGPR == &AMDGPU::VGPRRegBank);
const RegisterBank &RBAGPR = getRegBank(AMDGPU::AGPRRegBankID);
(void)RBAGPR;
assert(&RBAGPR == &AMDGPU::AGPRRegBank);
assert(&getRegBank(AMDGPU::SGPRRegBankID) == &AMDGPU::SGPRRegBank &&
&getRegBank(AMDGPU::VGPRRegBankID) == &AMDGPU::VGPRRegBank &&
&getRegBank(AMDGPU::AGPRRegBankID) == &AMDGPU::AGPRRegBank);
}
static bool isVectorRegisterBank(const RegisterBank &Bank) {