forked from OSchip/llvm-project
Handle MI flags inside Thumb2SizeReduction pass.
llvm-svn: 127102
This commit is contained in:
parent
e7410dd0d5
commit
acca7adf16
|
@ -412,6 +412,9 @@ Thumb2SizeReduce::ReduceLoadStore(MachineBasicBlock &MBB, MachineInstr *MI,
|
|||
// Transfer memoperands.
|
||||
(*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);
|
||||
|
||||
MBB.erase(MI);
|
||||
|
@ -563,6 +566,9 @@ Thumb2SizeReduce::ReduceTo2Addr(MachineBasicBlock &MBB, MachineInstr *MI,
|
|||
MIB.addOperand(MI->getOperand(i));
|
||||
}
|
||||
|
||||
// Transfer MI flags.
|
||||
MIB.setMIFlags(MI->getFlags());
|
||||
|
||||
DEBUG(errs() << "Converted 32-bit: " << *MI << " to 16-bit: " << *MIB);
|
||||
|
||||
MBB.erase(MI);
|
||||
|
@ -663,6 +669,9 @@ Thumb2SizeReduce::ReduceToNarrow(MachineBasicBlock &MBB, MachineInstr *MI,
|
|||
if (!TID.isPredicable() && NewTID.isPredicable())
|
||||
AddDefaultPred(MIB);
|
||||
|
||||
// Transfer MI flags.
|
||||
MIB.setMIFlags(MI->getFlags());
|
||||
|
||||
DEBUG(errs() << "Converted 32-bit: " << *MI << " to 16-bit: " << *MIB);
|
||||
|
||||
MBB.erase(MI);
|
||||
|
|
Loading…
Reference in New Issue