diff options
author | Tim Northover <tnorthover@apple.com> | 2013-12-02 14:46:26 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2013-12-02 14:46:26 +0000 |
commit | ad249171e4fa718290be2f1b276c1b7864dd27f7 (patch) | |
tree | 8c84c193493f3b420f1a26d015fed7cbe537eaa8 /lib/Target/ARM/ARMFrameLowering.cpp | |
parent | c7cf4869a726ea8f36680d4ef220f9902075dee8 (diff) | |
download | llvm-ad249171e4fa718290be2f1b276c1b7864dd27f7.tar.gz llvm-ad249171e4fa718290be2f1b276c1b7864dd27f7.tar.bz2 llvm-ad249171e4fa718290be2f1b276c1b7864dd27f7.tar.xz |
ARM: decide whether to use movw/movt based on "minsize" attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r-- | lib/Target/ARM/ARMFrameLowering.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFrameLowering.cpp b/lib/Target/ARM/ARMFrameLowering.cpp index 3e72d3690a..196f58dc5e 100644 --- a/lib/Target/ARM/ARMFrameLowering.cpp +++ b/lib/Target/ARM/ARMFrameLowering.cpp @@ -256,7 +256,7 @@ void ARMFrameLowering::emitPrologue(MachineFunction &MF) const { if (NumBytes) { // Adjust SP after all the callee-save spills. - if (tryFoldSPUpdateIntoPushPop(MF, LastPush, NumBytes)) + if (tryFoldSPUpdateIntoPushPop(STI, MF, LastPush, NumBytes)) FramePtrOffsetInPush += NumBytes; else emitSPUpdate(isARM, MBB, MBBI, dl, TII, -NumBytes, @@ -434,7 +434,8 @@ void ARMFrameLowering::emitEpilogue(MachineFunction &MF, ARM::SP) .addReg(FramePtr)); } - } else if (NumBytes && !tryFoldSPUpdateIntoPushPop(MF, FirstPop, NumBytes)) + } else if (NumBytes && + !tryFoldSPUpdateIntoPushPop(STI, MF, FirstPop, NumBytes)) emitSPUpdate(isARM, MBB, MBBI, dl, TII, NumBytes); // Increment past our save areas. |