mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 00:25:01 +00:00
Use tMOVgpr2gpr instead of t2MOVr.
llvm-svn: 78556
This commit is contained in:
parent
86ddd268b4
commit
f54e50e4e8
@ -1297,10 +1297,13 @@ emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const {
|
||||
ARMCC::AL, 0, TII);
|
||||
} else {
|
||||
// Thumb2 or ARM.
|
||||
unsigned MOVrOpc = isARM ? ARM::MOVr : ARM::t2MOVr;
|
||||
BuildMI(MBB, MBBI, dl, TII.get(MOVrOpc), ARM::SP)
|
||||
.addReg(FramePtr)
|
||||
.addImm((unsigned)ARMCC::AL).addReg(0).addReg(0);
|
||||
if (isARM)
|
||||
BuildMI(MBB, MBBI, dl, TII.get(ARM::MOVr), ARM::SP)
|
||||
.addReg(FramePtr)
|
||||
.addImm((unsigned)ARMCC::AL).addReg(0).addReg(0);
|
||||
else
|
||||
BuildMI(MBB, MBBI, dl, TII.get(ARM::tMOVgpr2gpr), ARM::SP)
|
||||
.addReg(FramePtr);
|
||||
}
|
||||
}
|
||||
} else if (NumBytes)
|
||||
|
Loading…
Reference in New Issue
Block a user