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/Thumb1FrameLowering.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/Thumb1FrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/Thumb1FrameLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp b/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp index cfb33f5b821..0a05c0b8495 100644 --- a/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp +++ b/llvm/lib/Target/ARM/Thumb1FrameLowering.cpp @@ -165,7 +165,7 @@ void Thumb1FrameLowering::emitPrologue(MachineFunction &MF) const { NumBytes = DPRCSOffset; int FramePtrOffsetInBlock = 0; - if (tryFoldSPUpdateIntoPushPop(MF, prior(MBBI), NumBytes)) { + if (tryFoldSPUpdateIntoPushPop(STI, MF, prior(MBBI), NumBytes)) { FramePtrOffsetInBlock = NumBytes; NumBytes = 0; } @@ -291,9 +291,9 @@ void Thumb1FrameLowering::emitEpilogue(MachineFunction &MF, &MBB.front() != MBBI && prior(MBBI)->getOpcode() == ARM::tPOP) { MachineBasicBlock::iterator PMBBI = prior(MBBI); - if (!tryFoldSPUpdateIntoPushPop(MF, PMBBI, NumBytes)) + if (!tryFoldSPUpdateIntoPushPop(STI, MF, PMBBI, NumBytes)) emitSPUpdate(MBB, PMBBI, TII, dl, *RegInfo, NumBytes); - } else if (!tryFoldSPUpdateIntoPushPop(MF, MBBI, NumBytes)) + } else if (!tryFoldSPUpdateIntoPushPop(STI, MF, MBBI, NumBytes)) emitSPUpdate(MBB, MBBI, TII, dl, *RegInfo, NumBytes); } } |