summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.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/ARMISelLowering.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/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 27948529418..b7f0f6f67a8 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1745,8 +1745,7 @@ ARMTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
// FIXME: handle tail calls differently.
unsigned CallOpc;
- bool HasMinSizeAttr = MF.getFunction()->getAttributes().
- hasAttribute(AttributeSet::FunctionIndex, Attribute::MinSize);
+ bool HasMinSizeAttr = Subtarget->isMinSize();
if (Subtarget->isThumb()) {
if ((!isDirect || isARMFunc) && !Subtarget->hasV5TOps())
CallOpc = ARMISD::CALL_NOLINK;
OpenPOWER on IntegriCloud