summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86Subtarget.cpp
diff options
context:
space:
mode:
authorAlexey Volkov <avolkov.intel@gmail.com>2014-05-20 08:55:50 +0000
committerAlexey Volkov <avolkov.intel@gmail.com>2014-05-20 08:55:50 +0000
commit0d0bab5168239afddcc6a4fbcc73b101b570f563 (patch)
tree2b1c12e5abd648345f55aa87864a772354782836 /lib/Target/X86/X86Subtarget.cpp
parent6f242c93ec57db744194ae3052fa59db71716ffe (diff)
downloadllvm-0d0bab5168239afddcc6a4fbcc73b101b570f563.tar.gz
llvm-0d0bab5168239afddcc6a4fbcc73b101b570f563.tar.bz2
llvm-0d0bab5168239afddcc6a4fbcc73b101b570f563.tar.xz
[X86] Tune LEA usage for Silvermont
According to Intel Software Optimization Manual on Silvermont in some cases LEA is better to be replaced with ADD instructions: "The rule of thumb for ADDs and LEAs is that it is justified to use LEA with a valid index and/or displacement for non-destructive destination purposes (especially useful for stack offset cases), or to use a SCALE. Otherwise, ADD(s) are preferable." Differential Revision: http://reviews.llvm.org/D3826 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r--lib/Target/X86/X86Subtarget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index 31c85a7835..b94bd712ff 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -282,6 +282,7 @@ void X86Subtarget::initializeEnvironment() {
PadShortFunctions = false;
CallRegIndirect = false;
LEAUsesAG = false;
+ SlowLEA = false;
stackAlignment = 4;
// FIXME: this is a known good value for Yonah. How about others?
MaxInlineSizeThreshold = 128;