S/390: Perform more aggressive inlining
authorRobin Dapp <rdapp@linux.ibm.com>
Tue, 12 Mar 2019 17:12:56 +0000 (17:12 +0000)
committerRobin Dapp <rdapp@gcc.gnu.org>
Tue, 12 Mar 2019 17:12:56 +0000 (17:12 +0000)
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

gcc/ChangeLog
gcc/config/s390/s390.c

index 3c2499b0946610c9005beab6da4080b6cc60c239..bb58b304eac3ca74bb79d991d6db6b72f7f64fff 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 70a7034c300bb66e9df5977cc6913b85ca46cc7b..41f2665a73a7cad7e7a4d33cd00fc54d042165f2 100644 (file)
@@ -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);