[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.

GitOrigin-RevId: 2dcc71af1879a3da47d51f6eb863873d6cacd0e5
diff --git a/lib/Target/AMDGPU/GCNDPPCombine.cpp b/lib/Target/AMDGPU/GCNDPPCombine.cpp
index b38e20b..a750822 100644
--- a/lib/Target/AMDGPU/GCNDPPCombine.cpp
+++ b/lib/Target/AMDGPU/GCNDPPCombine.cpp
@@ -191,7 +191,7 @@
   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)