This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Stream profile summary histogram through LTO files (issue6782131)
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Teresa Johnson <tejohnson at google dot com>
- Cc: reply at codereview dot appspotmail dot com, hubicka at ucw dot cz, gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Nov 2012 17:06:13 +0100
- Subject: Re: [PATCH] Stream profile summary histogram through LTO files (issue6782131)
- References: <20121130150958.7B61061422@tjsboxrox.mtv.corp.google.com>
> Revised patch to ensure that histograms from the profile summary are streamed
> through the LTO files so that the working set can be computed for use in
> downstream optimizations.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu. Ok for trunk?
>
> Thanks,
> Teresa
>
> 2012-11-29 Teresa Johnson <tejohnson@google.com>
>
> * lto-cgraph.c (output_profile_summary): Stream out sum_all
> and histogram.
> (input_profile_summary): Stream in sum_all and histogram.
> (merge_profile_summaries): Merge sum_all and histogram, and
> change to use RDIV.
> (input_symtab): Call compute_working_sets after merging
> summaries.
> * gcov-io.c (gcov_histo_index): Make extern for compiler.
> * gcov-io.h (gcov_histo_index): Ditto.
> * profile.c (compute_working_sets): Remove static keyword.
> * profile.h (compute_working_sets): Ditto.
> * Makefile.in (lto-cgraph.o): Depend on profile.h.
OK,
thanks!
Honza