forked from OSchip/llvm-project
[AMDGPU] Fix gcc warnings about unused variables [NFC]
This commit is contained in:
parent
f4abdb0c07
commit
e7b169a8ae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue