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.

Change-Id: I529a9297cb8d230a5821d73d5b462d433a8c2108
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
Signed-off-by: Egor Kochetov <egor.kochetov@intel.com>
diff --git a/gcc-4.9/gcc/config/i386/i386.c b/gcc-4.9/gcc/config/i386/i386.c
index a598b8e..53468ea 100644
--- a/gcc-4.9/gcc/config/i386/i386.c
+++ b/gcc-4.9/gcc/config/i386/i386.c
@@ -4050,6 +4050,12 @@
 			 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