[AMDGPU] Fix gcc warnings about unused variables [NFC]
authorMikael Holmen <mikael.holmen@ericsson.com>
Thu, 23 Sep 2021 06:07:45 +0000 (08:07 +0200)
committerMikael Holmen <mikael.holmen@ericsson.com>
Thu, 23 Sep 2021 06:08:00 +0000 (08:08 +0200)
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

index 6790132..f06b69d 100644 (file)
@@ -1393,7 +1393,7 @@ bool SIFoldOperands::tryFoldClamp(MachineInstr &MI) {
   // instruction, so we might as well convert it to the more flexible VOP3-only
   // mad/fma form.
   MachineFunction::iterator MBBI = Def->getParent()->getIterator();
-  if (MachineInstr *NewMI = TII->convertToThreeAddress(MBBI, *Def, nullptr))
+  if (TII->convertToThreeAddress(MBBI, *Def, nullptr))
     Def->eraseFromParent();
 
   return true;
@@ -1539,7 +1539,7 @@ bool SIFoldOperands::tryFoldOMod(MachineInstr &MI) {
   // instruction, so we might as well convert it to the more flexible VOP3-only
   // mad/fma form.
   MachineFunction::iterator MBBI = Def->getParent()->getIterator();
-  if (MachineInstr *NewMI = TII->convertToThreeAddress(MBBI, *Def, nullptr))
+  if (TII->convertToThreeAddress(MBBI, *Def, nullptr))
     Def->eraseFromParent();
 
   return true;