Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(43)

Issue 6782131: [PATCH] Stream profile summary histogram through LTO files

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by tejohnson
Modified:
9 years, 10 months ago
Reviewers:
hubicka
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/trunk/gcc/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : [PATCH] Stream profile summary histogram through LTO files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -26 lines) Patch
M Makefile.in View 1 1 chunk +1 line, -1 line 0 comments Download
M gcov-io.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M gcov-io.c View 1 3 chunks +9 lines, -5 lines 0 comments Download
M lto-cgraph.c View 1 9 chunks +107 lines, -19 lines 0 comments Download
M profile.h View 1 chunk +2 lines, -0 lines 0 comments Download
M profile.c View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
tejohnson
This patch ensures that the histograms from the profile summary are streamed through the LTO ...
11 years, 7 months ago (2012-11-29 04:11:18 UTC) #1
hubicka_ucw.cz
> This patch ensures that the histograms from the profile summary are streamed > through ...
11 years, 7 months ago (2012-11-29 16:17:45 UTC) #2
tejohnson
On Thu, Nov 29, 2012 at 8:17 AM, Jan Hubicka <hubicka@ucw.cz> wrote: >> This patch ...
11 years, 7 months ago (2012-11-29 16:45:34 UTC) #3
hubicka_ucw.cz
11 years, 7 months ago (2012-11-29 16:55:01 UTC) #4
> 
> I assume you mean use the bitpack streaming functionality used other
> places in lto-cgraph.c, and not change the way it is done in gcov-io.c
> where this was cloned from? I will change the lto-cgraph.c code to use
> the bitpacking.

Yes, we don't have the facility on gcov-io, so we need to do that by hand.
> 
> >> +     lto_gcov_summary.sum_all = MAX (lto_gcov_summary.sum_all,
> >> +                                     (file_data->profile_info.sum_all
> >> +                                      * scale
> >> +                                      + REG_BR_PROB_BASE / 2)
> >> +                                     / REG_BR_PROB_BASE);
> >
> > Use RDIV for the scaling.
> 
> ok. This was cloned from the way we do other scalings in the same
> function, I will change them all to use RDIV.

Yes, thanks!
> 
> >> -#if IN_LIBGCOV || !IN_GCOV
> >> +#if !IN_GCOV
> >>  /* Determine the index into histogram for VALUE. */
> >>
> >> -static unsigned
> >> +GCOV_LINKAGE unsigned
> > I would probably go around the trouble of declaring this static in GCOV,
> > so it is inlined at we do not bload libgcov more than needed.
> 
> Do you mean leave it static when IN_LIBGCOV? It isn't included when
> IN_GCOV. I just need it extern when in the compiler. So do you mean
> make it static when IN_LIBGCOV and GCOV_LINKAGE (i.e. extern) when
> !IN_LIBGCOV?

Yes, it should help inliner to do the right things for libgcov...

Thanks,
Honza
> 
> Thanks,
> Teresa
> 
> >
> > Thanks,
> > Honza
> 
> 
> 
> --
> Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b