mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Always use the 16-bit tMOVgpr2gpr instead of the 32-bit t2MOVr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff4bc460c5
commit
09d97354ed
@ -337,8 +337,7 @@ int llvm::rewriteT2FrameIndex(MachineInstr &MI, unsigned FrameRegIdx,
|
|||||||
bool isSP = FrameReg == ARM::SP;
|
bool isSP = FrameReg == ARM::SP;
|
||||||
if (Offset == 0) {
|
if (Offset == 0) {
|
||||||
// Turn it into a move.
|
// Turn it into a move.
|
||||||
unsigned NewOpc = isSP ? ARM::tMOVgpr2gpr : ARM::t2MOVr;
|
MI.setDesc(TII.get(ARM::tMOVgpr2gpr));
|
||||||
MI.setDesc(TII.get(NewOpc));
|
|
||||||
MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false);
|
MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false);
|
||||||
MI.RemoveOperand(FrameRegIdx+1);
|
MI.RemoveOperand(FrameRegIdx+1);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user