[llvm] r285363 - AMDGPU/SI: Fix unused variable warning on non-debug builds
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 27 16:28:03 PDT 2016
Author: tstellar
Date: Thu Oct 27 18:28:03 2016
New Revision: 285363
URL: http://llvm.org/viewvc/llvm-project?rev=285363&view=rev
Log:
AMDGPU/SI: Fix unused variable warning on non-debug builds
Modified:
llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp?rev=285363&r1=285362&r2=285363&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp Thu Oct 27 18:28:03 2016
@@ -399,6 +399,7 @@ int GCNHazardRecognizer::createsVALUHaza
int SRsrcIdx = AMDGPU::getNamedOperandIdx(Opcode, AMDGPU::OpName::srsrc);
assert(SRsrcIdx != -1 &&
AMDGPU::getRegBitWidth(Desc.OpInfo[SRsrcIdx].RegClass) == 256);
+ (void)SRsrcIdx;
}
if (TII->isFLAT(MI)) {
More information about the llvm-commits
mailing list