Always use the 16-bit tMOVgpr2gpr instead of the 32-bit t2MOVr.

llvm-svn: 78549
This commit is contained in:
Evan Cheng 2009-08-10 02:06:53 +00:00
parent cc70d578be
commit 09cacea9fb

View File

@ -337,8 +337,7 @@ int llvm::rewriteT2FrameIndex(MachineInstr &MI, unsigned FrameRegIdx,
bool isSP = FrameReg == ARM::SP;
if (Offset == 0) {
// Turn it into a move.
unsigned NewOpc = isSP ? ARM::tMOVgpr2gpr : ARM::t2MOVr;
MI.setDesc(TII.get(NewOpc));
MI.setDesc(TII.get(ARM::tMOVgpr2gpr));
MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false);
MI.RemoveOperand(FrameRegIdx+1);
return 0;