diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-08-10 05:49:43 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-08-10 05:49:43 +0000 |
commit | 052053bbe3169a3574cb5af026cf0a5d616ae04d (patch) | |
tree | 96d646ee1f9bae8b6ea6ac936d90e502b1245fcd /lib/Target | |
parent | ca15f3d6d6c29e9cc75225730270e9ef85834a22 (diff) | |
download | external_llvm-052053bbe3169a3574cb5af026cf0a5d616ae04d.zip external_llvm-052053bbe3169a3574cb5af026cf0a5d616ae04d.tar.gz external_llvm-052053bbe3169a3574cb5af026cf0a5d616ae04d.tar.bz2 |
Use tMOVgpr2gpr instead of t2MOVr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/ARMBaseRegisterInfo.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp index a72e9dd..368a177 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -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) |