Fix `-Wunused-variable` warning. NFC.
authorMichael Liao <michael.hliao@gmail.com>
Sat, 4 Dec 2021 23:20:21 +0000 (18:20 -0500)
committerMichael Liao <michael.hliao@gmail.com>
Sun, 5 Dec 2021 04:34:55 +0000 (23:34 -0500)
llvm/lib/Target/AMDGPU/SIISelLowering.cpp

index ae193fb..9037036 100644 (file)
@@ -11517,7 +11517,7 @@ void SITargetLowering::AdjustInstrPostInstrSelection(MachineInstr &MI,
     // Prefer VGPRs over AGPRs in mAI instructions where possible.
     // This saves a chain-copy of registers and better ballance register
     // use between vgpr and agpr as agpr tuples tend to be big.
-    if (const MCOperandInfo *OpInfo = MI.getDesc().OpInfo) {
+    if (MI.getDesc().OpInfo) {
       unsigned Opc = MI.getOpcode();
       const SIRegisterInfo *TRI = Subtarget->getRegisterInfo();
       for (auto I : { AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::src0),