diff options
author | James Molloy <james.molloy@arm.com> | 2011-10-26 08:53:19 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2011-10-26 08:53:19 +0000 |
commit | 015cca6c08a5da57b78796d82ab2679e8f5dabe1 (patch) | |
tree | 7fb5067bf96218d4bfd7fb2d404e5a0d2b02a625 /lib/Target | |
parent | 8a924c6edf7695dfaf85a625dfcb9eb593fc8c4f (diff) | |
download | llvm-015cca6c08a5da57b78796d82ab2679e8f5dabe1.tar.gz llvm-015cca6c08a5da57b78796d82ab2679e8f5dabe1.tar.bz2 llvm-015cca6c08a5da57b78796d82ab2679e8f5dabe1.tar.xz |
Revert r142530 at least temporarily while a discussion is had on llvm-commits regarding exactly how much optsize should optimize for size over performance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index d7aca30980..472bf4c42f 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -2104,11 +2104,8 @@ SDValue ARMTargetLowering::LowerGlobalAddressELF(SDValue Op, } // If we have T2 ops, we can materialize the address directly via movt/movw - // pair. This is always cheaper in terms of performance, but uses at least 2 - // extra bytes. - MachineFunction &MF = DAG.getMachineFunction(); - if (Subtarget->useMovt() && - !MF.getFunction()->hasFnAttr(Attribute::OptimizeForSize)) { + // pair. This is always cheaper. + if (Subtarget->useMovt()) { ++NumMovwMovt; // FIXME: Once remat is capable of dealing with instructions with register // operands, expand this into two nodes. |