[llvm] 53fc971 - Fix `-Wunused-variable` warning. NFC.
Michael Liao via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 4 20:41:57 PST 2021
Author: Michael Liao
Date: 2021-12-04T23:34:55-05:00
New Revision: 53fc971a4b7945e8e29f4ef9795b9fe655a0023b
URL: https://github.com/llvm/llvm-project/commit/53fc971a4b7945e8e29f4ef9795b9fe655a0023b
DIFF: https://github.com/llvm/llvm-project/commit/53fc971a4b7945e8e29f4ef9795b9fe655a0023b.diff
LOG: Fix `-Wunused-variable` warning. NFC.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index ae193fb5ca3a..90370362f9e0 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -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),
More information about the llvm-commits
mailing list