mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-09 03:56:28 +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::SUBri:
|
||||
case ARM::t2ADDri:
|
||||
case ARM::t2SUBri: {
|
||||
case ARM::t2SUBri:
|
||||
MI->RemoveOperand(5);
|
||||
MachineInstrBuilder MB(MI);
|
||||
MB.addReg(ARM::CPSR, RegState::Define | RegState::Implicit);
|
||||
MachineInstrBuilder(MI)
|
||||
.addReg(ARM::CPSR, RegState::Define | RegState::Implicit);
|
||||
CmpInstr->eraseFromParent();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user