diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2015-02-11 15:52:39 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2015-02-11 15:54:09 +0800 |
commit | 5c0bd159398f85757214f380b12fbf7bb7e2a8bc (patch) | |
tree | cb1452edce8b4d159875d87162eb1ab330c5f9d8 | |
parent | 63fd708bd182b50b37b9f64fa330458c9109380a (diff) | |
download | toolchain_gcc-5c0bd159398f85757214f380b12fbf7bb7e2a8bc.tar.gz toolchain_gcc-5c0bd159398f85757214f380b12fbf7bb7e2a8bc.tar.bz2 toolchain_gcc-5c0bd159398f85757214f380b12fbf7bb7e2a8bc.zip |
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
-rw-r--r-- | gcc-4.9/gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc-4.9/gcc/config/i386/i386.c | 6 | ||||
-rw-r--r-- | gcc-4.9/gcc/params.def | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/gcc-4.9/gcc/ChangeLog b/gcc-4.9/gcc/ChangeLog index b8aa734c8..b97054b2c 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 7226ee016..fcd5f0dd1 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 f59656933..f8d2a9cd1 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", |