mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-23 11:38:38 +00:00
Minor simplification. Gets rid of a needless temporary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b81fd62a66
commit
ad422718f9
@ -1403,14 +1403,13 @@ ConvertToSetZeroFlag(MachineInstr *MI, MachineInstr *CmpInstr) const {
|
|||||||
case ARM::ADDri:
|
case ARM::ADDri:
|
||||||
case ARM::SUBri:
|
case ARM::SUBri:
|
||||||
case ARM::t2ADDri:
|
case ARM::t2ADDri:
|
||||||
case ARM::t2SUBri: {
|
case ARM::t2SUBri:
|
||||||
MI->RemoveOperand(5);
|
MI->RemoveOperand(5);
|
||||||
MachineInstrBuilder MB(MI);
|
MachineInstrBuilder(MI)
|
||||||
MB.addReg(ARM::CPSR, RegState::Define | RegState::Implicit);
|
.addReg(ARM::CPSR, RegState::Define | RegState::Implicit);
|
||||||
CmpInstr->eraseFromParent();
|
CmpInstr->eraseFromParent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user