[llvm-commits] [llvm] r127102 - /llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Mar 5 10:43:38 PST 2011
Author: asl
Date: Sat Mar 5 12:43:38 2011
New Revision: 127102
URL: http://llvm.org/viewvc/llvm-project?rev=127102&view=rev
Log:
Handle MI flags inside Thumb2SizeReduction pass.
Modified:
llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp?rev=127102&r1=127101&r2=127102&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2SizeReduction.cpp Sat Mar 5 12:43:38 2011
@@ -412,6 +412,9 @@
// 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 @@
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 @@
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);
More information about the llvm-commits
mailing list