From 81762471dff662de3066037f425d4dadc20be40f Mon Sep 17 00:00:00 2001 From: Alexander Ivchenko Date: Wed, 3 Dec 2014 17:57:47 +0300 Subject: 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 * config/i386/i386.c (ix86_option_override_internal): Increase PARAM_MAX_COMPLETELY_PEELED_INSNS. Signed-off-by: Alexander Ivchenko Signed-off-by: Egor Kochetov (cherry picked from commit 1f170f4a426b1ed354345de5aaba634036854e43) Change-Id: Ie395a6602c8305530ebc02f9006d84f98365857a --- gcc-4.9/gcc/config/i386/i386.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc-4.9') diff --git a/gcc-4.9/gcc/config/i386/i386.c b/gcc-4.9/gcc/config/i386/i386.c index 54942d520..865d22352 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 -- cgit v1.2.3