AMDGPU: Replace subtarget check with an assert

This is already checked by the pattern subtarget predicate.
This commit is contained in:
Matt Arsenault 2020-01-29 21:40:18 -05:00
parent 97a1d4bc02
commit f7521dc292
1 changed files with 2 additions and 4 deletions

View File

@ -1852,8 +1852,7 @@ bool AMDGPUDAGToDAGISel::SelectSMRDImm(SDValue Addr, SDValue &SBase,
bool AMDGPUDAGToDAGISel::SelectSMRDImm32(SDValue Addr, SDValue &SBase,
SDValue &Offset) const {
if (Subtarget->getGeneration() != AMDGPUSubtarget::SEA_ISLANDS)
return false;
assert(Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS);
bool Imm;
if (!SelectSMRD(Addr, SBase, Offset, Imm))
@ -1877,8 +1876,7 @@ bool AMDGPUDAGToDAGISel::SelectSMRDBufferImm(SDValue Addr,
bool AMDGPUDAGToDAGISel::SelectSMRDBufferImm32(SDValue Addr,
SDValue &Offset) const {
if (Subtarget->getGeneration() != AMDGPUSubtarget::SEA_ISLANDS)
return false;
assert(Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS);
bool Imm;
if (!SelectSMRDOffset(Addr, Offset, Imm))