mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Simplify check that optional def is there and is CPSR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb5b3f3359
commit
3f56d4b957
@ -140,10 +140,9 @@ Thumb2ITBlockPass::MoveCopyOutOfITBlock(MachineInstr *MI,
|
|||||||
// rsb r1, 0
|
// rsb r1, 0
|
||||||
// rsb r2, 0
|
// rsb r2, 0
|
||||||
//
|
//
|
||||||
//
|
const MCInstrDesc &MCID = MI->getDesc();
|
||||||
for (unsigned I = 0, E = MI->getNumOperands(); I != E; ++I)
|
if (MCID.hasOptionalDef() &&
|
||||||
if (MI->getOperand(I).isReg() && MI->getOperand(I).getReg() == ARM::CPSR &&
|
MI->getOperand(MCID.getNumOperands() - 1).getReg() == ARM::CPSR)
|
||||||
MI->getOperand(I).isDef())
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Then peek at the next instruction to see if it's predicated on CC or OCC.
|
// Then peek at the next instruction to see if it's predicated on CC or OCC.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user