public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use
@ 2014-10-18 16:39 Teresa Johnson
  2014-10-18 17:10 ` Jan Hubicka
  2014-10-18 21:59 ` Xinliang David Li
  0 siblings, 2 replies; 13+ messages in thread
From: Teresa Johnson @ 2014-10-18 16:39 UTC (permalink / raw)
  To: David Li, gcc-patches

Increasing the number of early inliner iterations from 1 to 2 enables more
indirect calls to be promoted/inlined before instrumentation. This in turn
reduces the instrumentation overhead, particularly for more expensive indirect
call topn profiling.

Passes internal testing and regression tests. Ok for google/4_9?

2014-10-18  Teresa Johnson  <tejohnson@google.com>

        Google ref b/17934523
        * opts.c (finish_options): Increase max-early-inliner-iterations to 2
        for profile-gen and profile-use builds.

Index: opts.c
===================================================================
--- opts.c      (revision 216286)
+++ opts.c      (working copy)
@@ -870,6 +869,14 @@ finish_options (struct gcc_options *opts, struct g
         opts->x_param_values, opts_set->x_param_values);
     }

+  if (opts->x_profile_arc_flag
+      || opts->x_flag_branch_probabilities)
+    {
+      maybe_set_param_value
+       (PARAM_EARLY_INLINER_MAX_ITERATIONS, 2,
+        opts->x_param_values, opts_set->x_param_values);
+    }
+
   if (!(opts->x_flag_auto_profile
         || (opts->x_profile_arc_flag || opts->x_flag_branch_probabilities)))
     {


-- 
Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-10-21  7:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-18 16:39 [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use Teresa Johnson
2014-10-18 17:10 ` Jan Hubicka
2014-10-18 21:52   ` Xinliang David Li
2014-10-18 23:16     ` Jan Hubicka
2014-10-18 23:22       ` Xinliang David Li
2014-10-18 23:51         ` Jan Hubicka
2014-10-18 23:55           ` Xinliang David Li
2014-10-19  0:10           ` Teresa Johnson
2014-10-19 22:45         ` Xinliang David Li
2014-10-20  9:42           ` Richard Biener
2014-10-20 16:08             ` Xinliang David Li
2014-10-21  7:54               ` Richard Biener
2014-10-18 21:59 ` Xinliang David Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).