[llvm] 2dcc71a - [AMDGPU] Fix -Wunused-function in GCNDPPCombine.cpp (NFC)
Jie Fu via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 29 03:25:28 PDT 2023
Author: Jie Fu
Date: 2023-09-29T18:24:18+08:00
New Revision: 2dcc71af1879a3da47d51f6eb863873d6cacd0e5
URL: https://github.com/llvm/llvm-project/commit/2dcc71af1879a3da47d51f6eb863873d6cacd0e5
DIFF: https://github.com/llvm/llvm-project/commit/2dcc71af1879a3da47d51f6eb863873d6cacd0e5.diff
LOG: [AMDGPU] Fix -Wunused-function in GCNDPPCombine.cpp (NFC)
/llvm-project/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp:194:17: error: unused function 'getOperandSize' [-Werror,-Wunused-function]
static unsigned getOperandSize(MachineInstr &MI, unsigned Idx,
^
1 error generated.
Added:
Modified:
llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp b/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
index b38e20b2708f236..a75082268c7739f 100644
--- a/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
@@ -191,7 +191,7 @@ MachineOperand *GCNDPPCombine::getOldOpndValue(MachineOperand &OldOpnd) const {
return &OldOpnd;
}
-static unsigned getOperandSize(MachineInstr &MI, unsigned Idx,
+[[maybe_unused]] static unsigned getOperandSize(MachineInstr &MI, unsigned Idx,
MachineRegisterInfo &MRI) {
int16_t RegClass = MI.getDesc().operands()[Idx].RegClass;
if (RegClass == -1)
More information about the llvm-commits
mailing list