aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2015-02-11 07:52:39 (GMT)
committerAndrew Hsieh <andrewhsieh@google.com>2015-02-11 07:54:09 (GMT)
commit5c0bd159398f85757214f380b12fbf7bb7e2a8bc (patch)
treecb1452edce8b4d159875d87162eb1ab330c5f9d8 /gcc-4.9
parent63fd708bd182b50b37b9f64fa330458c9109380a (diff)
downloadtoolchain_gcc-5c0bd159398f85757214f380b12fbf7bb7e2a8bc.zip
toolchain_gcc-5c0bd159398f85757214f380b12fbf7bb7e2a8bc.tar.gz
toolchain_gcc-5c0bd159398f85757214f380b12fbf7bb7e2a8bc.tar.bz2
Cherry-pick: Increase PARAM_MAX_COMPLETELY_PEELED_INSNS when branch is costly
Author: uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Sat Nov 22 19:02:12 2014 +0000 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200. * config/i386/i386.c (ix86_option_override_internal): Do not increase PARAM_MAX_COMPLETELY_PEELED_INSNS. Change-Id: I202e14a29f2436872910301efec863afdd4127e7
Diffstat (limited to 'gcc-4.9')
-rw-r--r--gcc-4.9/gcc/ChangeLog6
-rw-r--r--gcc-4.9/gcc/config/i386/i386.c6
-rw-r--r--gcc-4.9/gcc/params.def2
3 files changed, 7 insertions, 7 deletions
diff --git a/gcc-4.9/gcc/ChangeLog b/gcc-4.9/gcc/ChangeLog
index b8aa734..b97054b 100644
--- a/gcc-4.9/gcc/ChangeLog
+++ b/gcc-4.9/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2014-11-22 Uros Bizjak <ubizjak@gmail.com>
+
+ * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
+ * config/i386/i386.c (ix86_option_override_internal): Do not increase
+ PARAM_MAX_COMPLETELY_PEELED_INSNS.
+
2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
diff --git a/gcc-4.9/gcc/config/i386/i386.c b/gcc-4.9/gcc/config/i386/i386.c
index 7226ee0..fcd5f0d 100644
--- a/gcc-4.9/gcc/config/i386/i386.c
+++ b/gcc-4.9/gcc/config/i386/i386.c
@@ -4050,12 +4050,6 @@ 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,
- 200,
- 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
diff --git a/gcc-4.9/gcc/params.def b/gcc-4.9/gcc/params.def
index f596569..f8d2a9c 100644
--- a/gcc-4.9/gcc/params.def
+++ b/gcc-4.9/gcc/params.def
@@ -338,7 +338,7 @@ DEFPARAM(PARAM_MAX_PEEL_BRANCHES,
DEFPARAM(PARAM_MAX_COMPLETELY_PEELED_INSNS,
"max-completely-peeled-insns",
"The maximum number of insns of a completely peeled loop",
- 100, 0, 0)
+ 200, 0, 0)
/* The default maximum number of insns of a peeled loop, with -O2. */
DEFPARAM(PARAM_MAX_DEFAULT_COMPLETELY_PEELED_INSNS,
"max-default-completely-peeled-insns",