mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Handle MI flags inside Thumb2SizeReduction pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57caad7a33
commit
7503fcb890
@ -412,6 +412,9 @@ Thumb2SizeReduce::ReduceLoadStore(MachineBasicBlock &MBB, MachineInstr *MI,
|
|||||||
// Transfer memoperands.
|
// Transfer memoperands.
|
||||||
(*MIB).setMemRefs(MI->memoperands_begin(), MI->memoperands_end());
|
(*MIB).setMemRefs(MI->memoperands_begin(), MI->memoperands_end());
|
||||||
|
|
||||||
|
// Transfer MI flags.
|
||||||
|
MIB.setMIFlags(MI->getFlags());
|
||||||
|
|
||||||
DEBUG(errs() << "Converted 32-bit: " << *MI << " to 16-bit: " << *MIB);
|
DEBUG(errs() << "Converted 32-bit: " << *MI << " to 16-bit: " << *MIB);
|
||||||
|
|
||||||
MBB.erase(MI);
|
MBB.erase(MI);
|
||||||
@ -563,6 +566,9 @@ Thumb2SizeReduce::ReduceTo2Addr(MachineBasicBlock &MBB, MachineInstr *MI,
|
|||||||
MIB.addOperand(MI->getOperand(i));
|
MIB.addOperand(MI->getOperand(i));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Transfer MI flags.
|
||||||
|
MIB.setMIFlags(MI->getFlags());
|
||||||
|
|
||||||
DEBUG(errs() << "Converted 32-bit: " << *MI << " to 16-bit: " << *MIB);
|
DEBUG(errs() << "Converted 32-bit: " << *MI << " to 16-bit: " << *MIB);
|
||||||
|
|
||||||
MBB.erase(MI);
|
MBB.erase(MI);
|
||||||
@ -663,6 +669,9 @@ Thumb2SizeReduce::ReduceToNarrow(MachineBasicBlock &MBB, MachineInstr *MI,
|
|||||||
if (!TID.isPredicable() && NewTID.isPredicable())
|
if (!TID.isPredicable() && NewTID.isPredicable())
|
||||||
AddDefaultPred(MIB);
|
AddDefaultPred(MIB);
|
||||||
|
|
||||||
|
// Transfer MI flags.
|
||||||
|
MIB.setMIFlags(MI->getFlags());
|
||||||
|
|
||||||
DEBUG(errs() << "Converted 32-bit: " << *MI << " to 16-bit: " << *MIB);
|
DEBUG(errs() << "Converted 32-bit: " << *MI << " to 16-bit: " << *MIB);
|
||||||
|
|
||||||
MBB.erase(MI);
|
MBB.erase(MI);
|
||||||
|
Loading…
Reference in New Issue
Block a user