AMDGPU/SI: Fix unused variable warning on non-debug builds

llvm-svn: 285363
This commit is contained in:
Tom Stellard 2016-10-27 23:28:03 +00:00
parent b7f96d1241
commit 6b9c1be4ea
1 changed files with 1 additions and 0 deletions

View File

@ -399,6 +399,7 @@ int GCNHazardRecognizer::createsVALUHazard(const MachineInstr &MI) {
int SRsrcIdx = AMDGPU::getNamedOperandIdx(Opcode, AMDGPU::OpName::srsrc); int SRsrcIdx = AMDGPU::getNamedOperandIdx(Opcode, AMDGPU::OpName::srsrc);
assert(SRsrcIdx != -1 && assert(SRsrcIdx != -1 &&
AMDGPU::getRegBitWidth(Desc.OpInfo[SRsrcIdx].RegClass) == 256); AMDGPU::getRegBitWidth(Desc.OpInfo[SRsrcIdx].RegClass) == 256);
(void)SRsrcIdx;
} }
if (TII->isFLAT(MI)) { if (TII->isFLAT(MI)) {