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 | dee8604cafc81f573528adf82528a76fffc3facf (patch) | |
tree | 7247fd8252ba73191371169594b324c6d6a64636 /llvm/lib/Target/ARM/ARMFrameLowering.cpp | |
parent | 094e1653cb3bb92af5ce55e84ad46e8bd2281567 (diff) | |
download | bcm5719-llvm-dee8604cafc81f573528adf82528a76fffc3facf.tar.gz bcm5719-llvm-dee8604cafc81f573528adf82528a76fffc3facf.zip |
ARM: decide whether to use movw/movt based on "minsize" attribute.
llvm-svn: 196102
Diffstat (limited to 'llvm/lib/Target/ARM/ARMFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFrameLowering.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp index 3e72d3690aa..196f58dc5ee 100644 --- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp +++ b/llvm/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. |