Skip to content

Commit

Permalink
[AMDGPU] Fix gcc warnings about unused variables [NFC]
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelholmen committed Sep 23, 2021
1 parent f4abdb0 commit e7b169a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e7b169a

Please sign in to comment.