aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2014-12-03 14:57:47 (GMT)
committerDan Albert <danalbert@google.com>2015-09-14 17:22:58 (GMT)
commit81762471dff662de3066037f425d4dadc20be40f (patch)
tree3387a2598d62d4dab6bbc1a3483b005ae37220e9
parent7b05d0f6a17397063a19232936eee7bbb53cd0dd (diff)
downloadtoolchain_gcc-81762471dff662de3066037f425d4dadc20be40f.zip
toolchain_gcc-81762471dff662de3066037f425d4dadc20be40f.tar.gz
toolchain_gcc-81762471dff662de3066037f425d4dadc20be40f.tar.bz2
Reapplied the patch 525b640e8dc9e6063897a7ce8034283
... with peeling limit set to 400 instead of 200 as it used to be. [4.9] Another backport from trunk of additional slm tuning. 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com> * config/i386/i386.c (ix86_option_override_internal): Increase PARAM_MAX_COMPLETELY_PEELED_INSNS. Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com> Signed-off-by: Egor Kochetov <egor.kochetov@intel.com> (cherry picked from commit 1f170f4a426b1ed354345de5aaba634036854e43) Change-Id: Ie395a6602c8305530ebc02f9006d84f98365857a
-rw-r--r--gcc-4.9/gcc/config/i386/i386.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/config/i386/i386.c b/gcc-4.9/gcc/config/i386/i386.c
index 54942d5..865d223 100644
--- a/gcc-4.9/gcc/config/i386/i386.c
+++ b/gcc-4.9/gcc/config/i386/i386.c
@@ -4070,6 +4070,12 @@ ix86_option_override_internal (bool main_args_p,
opts->x_param_values,
opts_set->x_param_values);
+ /* Increase full peel max insns parameter for x86. */
+ maybe_set_param_value (PARAM_MAX_COMPLETELY_PEELED_INSNS,
+ 400,
+ opts->x_param_values,
+ opts_set->x_param_values);
+
/* Enable sw prefetching at -O3 for CPUS that prefetching is helpful. */
if (opts->x_flag_prefetch_loop_arrays < 0
&& HAVE_prefetch