summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-12-02 14:46:26 +0000
committerTim Northover <tnorthover@apple.com>2013-12-02 14:46:26 +0000
commitdee8604cafc81f573528adf82528a76fffc3facf (patch)
tree7247fd8252ba73191371169594b324c6d6a64636 /llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
parent094e1653cb3bb92af5ce55e84ad46e8bd2281567 (diff)
downloadbcm5719-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/ARMBaseInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 6e7d1b23adf..06cef6d603b 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -1859,12 +1859,12 @@ void llvm::emitARMRegPlusImmediate(MachineBasicBlock &MBB,
}
}
-bool llvm::tryFoldSPUpdateIntoPushPop(MachineFunction &MF,
- MachineInstr *MI,
+bool llvm::tryFoldSPUpdateIntoPushPop(const ARMSubtarget &Subtarget,
+ MachineFunction &MF, MachineInstr *MI,
unsigned NumBytes) {
// This optimisation potentially adds lots of load and store
// micro-operations, it's only really a great benefit to code-size.
- if (!MF.getFunction()->hasFnAttribute(Attribute::MinSize))
+ if (!Subtarget.isMinSize())
return false;
// If only one register is pushed/popped, LLVM can use an LDR/STR
OpenPOWER on IntegriCloud