http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55674
--- Comment #3 from Teresa Johnson <tejohnson at google dot com> 2012-12-13 14:49:19 UTC --- Hi Markus, Are you sure you have my subsequent fixes patched in, to make sure the histogram is getting streamed through the LTO files? This was the behavior I saw when I was debugging the original issue that I fixed with those patches. Basically, the hotness checks before we went into LTO were good, and after LTO the min count was 0. Teresa On Thu, Dec 13, 2012 at 6:46 AM, markus at trippelsdorf dot de <gcc-bugzi...@gcc.gnu.org> wrote: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55674 > > --- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> > 2012-12-13 14:46:31 UTC --- > In the tramp3d-v4 case, when I run with this simple debug patch: > > diff --git a/gcc/predict.c b/gcc/predict.c > index 5d3de29..bf3a259 100644 > --- a/gcc/predict.c > +++ b/gcc/predict.c > @@ -147,6 +147,7 @@ maybe_hot_count_p (struct function *fun, gcov_type count) > gcc_assert (ws); > min_count = ws->min_counter; > } > + fprintf (stderr, "count=%i min_count=%i profile_info->sum_max=%i\n", count, > min_count, profile_info->sum_max); > return (count >= min_count); > } > > it shows that in the middle of the output, min_count changes from > 8585 to 0: > > ... ~600000 similar lines with min_count=8585 > count=3 min_count=8585 profile_info->sum_max=257406300 > count=3 min_count=8585 profile_info->sum_max=257406300 > count=3 min_count=8585 profile_info->sum_max=257406300 > count=3 min_count=8585 profile_info->sum_max=257406300 > count=40 min_count=0 profile_info->sum_max=257406300 > count=61 min_count=0 profile_info->sum_max=257406300 > count=40 min_count=0 profile_info->sum_max=257406300 > count=40 min_count=0 profile_info->sum_max=257406300 > ... ~600000 similar lines with min_count=0 > > -- > Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You are on the CC list for the bug.