aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2014-01-30 13:26:15 +0400
committerAlexander Ivchenko <alexander.ivchenko@intel.com>2014-01-30 16:26:54 +0400
commita108aa5cbab7efe4eedd19f68d7a9bbe021b2168 (patch)
tree56cc058a91ff667757085b96feb2880e8f456efe /gcc-4.8
parent5be615df32ce970fcccda93cf577e9ce35b1d397 (diff)
downloadtoolchain_gcc-a108aa5cbab7efe4eedd19f68d7a9bbe021b2168.tar.gz
toolchain_gcc-a108aa5cbab7efe4eedd19f68d7a9bbe021b2168.tar.bz2
toolchain_gcc-a108aa5cbab7efe4eedd19f68d7a9bbe021b2168.zip
[4.7, 4.8] Backport of two patches for additional SLM-tuning.
We don't have config/i386/x86-tune.def in 4.8, instead initial_ix86_tune_features is modified. This one is for 4.8 only. 2013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com> * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE for SLM. Update HImode imul cost for Silvermont 2013-12-13 Yuri Rumyantsev <ysrumyan@gmail.com> * config/i386/i386.c (slm_cost): Fix imul cost for HI. Change-Id: I3e6e7b157897e93bc3874738635db4ecf4e7f587 Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
Diffstat (limited to 'gcc-4.8')
-rw-r--r--gcc-4.8/gcc/config/i386/i386.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc-4.8/gcc/config/i386/i386.c b/gcc-4.8/gcc/config/i386/i386.c
index ddc76a558..9eb9f5f08 100644
--- a/gcc-4.8/gcc/config/i386/i386.c
+++ b/gcc-4.8/gcc/config/i386/i386.c
@@ -1722,7 +1722,7 @@ struct processor_costs generic32_cost = {
COSTS_N_INSNS (1), /* variable shift costs */
COSTS_N_INSNS (1), /* constant shift costs */
{COSTS_N_INSNS (3), /* cost of starting multiply for QI */
- COSTS_N_INSNS (4), /* HI */
+ COSTS_N_INSNS (3), /* HI */
COSTS_N_INSNS (3), /* SI */
COSTS_N_INSNS (4), /* DI */
COSTS_N_INSNS (2)}, /* other */
@@ -2103,7 +2103,7 @@ static unsigned int initial_ix86_tune_features[X86_TUNE_LAST] = {
/* X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE: Try to avoid memory operands for
a conditional move. */
- m_ATOM,
+ m_ATOM | m_SLM,
/* X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS: Try to split memory operand for
fp converts to destination register. */