diff options
author | Robin Dapp <rdapp@linux.ibm.com> | 2019-03-12 17:12:56 +0000 |
---|---|---|
committer | Robin Dapp <rdapp@gcc.gnu.org> | 2019-03-12 17:12:56 +0000 |
commit | 6684d2dbff7b3ba4a8ef1bef3446dd9df581444f (patch) | |
tree | afb279c9ad417451b5d6c5fe767611ee45fbdd97 /gcc | |
parent | ff99338ce375620258e8ebba222d6c224914b7d2 (diff) | |
download | gcc-6684d2dbff7b3ba4a8ef1bef3446dd9df581444f.zip gcc-6684d2dbff7b3ba4a8ef1bef3446dd9df581444f.tar.gz gcc-6684d2dbff7b3ba4a8ef1bef3446dd9df581444f.tar.bz2 |
S/390: Perform more aggressive inlining
This patch sets the inlining parameters for z13 and later to rather
aggressive values in response to PR85103 that caused performance
regressions in SPEC2006's sjeng and gobmk benchmarks.
From-SVN: r269623
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c2499b..bb58b30 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2019-03-12 Robin Dapp <rdapp@linux.ibm.com> + * config/s390/s390.c (s390_option_override_internal): Use more + aggressive inlining parameters. + +2019-03-12 Robin Dapp <rdapp@linux.ibm.com> + * config/s390/3906.md: New file. * config/s390/s390.c (MAX_SCHED_UNITS): Increase. (LONGRUNNING_THRESHOLD): Remove. diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 70a7034..41f2665 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -15072,6 +15072,18 @@ s390_option_override_internal (struct gcc_options *opts, opts->x_param_values, opts_set->x_param_values); + /* Use aggressive inlining parameters. */ + if (opts->x_s390_tune >= PROCESSOR_2964_Z13) + { + maybe_set_param_value (PARAM_INLINE_MIN_SPEEDUP, 2, + opts->x_param_values, + opts_set->x_param_values); + + maybe_set_param_value (PARAM_MAX_INLINE_INSNS_AUTO, 80, + opts->x_param_values, + opts_set->x_param_values); + } + /* Set the default alignment. */ s390_default_align (opts); |