aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2014-01-30 13:26:15 +0400
committerPavel Chupin <pavel.v.chupin@intel.com>2014-06-19 22:39:24 +0400
commit905b53c08336db58cf69bd5d1daf1ccb217fce49 (patch)
treeedb2f453fdc09b9496c015f4e067dd1ecc8ab812
parent1429824bc96c348aca08831ec4a3b5f3fc11579a (diff)
downloadtoolchain_gcc-905b53c08336db58cf69bd5d1daf1ccb217fce49.tar.gz
toolchain_gcc-905b53c08336db58cf69bd5d1daf1ccb217fce49.tar.bz2
toolchain_gcc-905b53c08336db58cf69bd5d1daf1ccb217fce49.zip
[4.8, REAPPLY] Backport of two patches for additional SLM-tuning.
Reapplying https://android-review.googlesource.com/#/c/80436 after 4.8.3 merge Change-Id: Ie14bec963d609507e8b2c2c8d20df007f77eabe6 Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
-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 179c51abc..c95822851 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. */