mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 00:25:01 +00:00
Always use the 16-bit tMOVgpr2gpr instead of the 32-bit t2MOVr.
llvm-svn: 78549
This commit is contained in:
parent
cc70d578be
commit
09cacea9fb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user