> On Sun, Oct 11, 2015 at 11:07 PM, Jan Hubicka <hubi...@ucw.cz> wrote: > > Hi, > > this patch fixes a case of extreme imprecision I noticed while looking into > > profiles of PHP interpretter. There is a function that is called 22 times > > and contains the main loop. Now since the frequency of entry block is > > dropped > > to 0, we do not have any information of relative frequencies in the colder > > areas of the function. > > > > Hope all this uglyness with go away with conversion to sreals soonish. > > > > Profiledbootstrapped/regtested ppc64le-linux, comitted. > > * cgraphbuild.c (compute_call_stmt_bb_frequency): Use > > counts when these are more informative. > > This caused: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67931
Hmm, interesting it does not show on ppcle. The problem is however obvious, while we scale counts we get into roundoff errors that affects the new definition of bb frequencies. I have reverted the patch as the actual effect on generated code should be minimal - we use counts instead of frequences when available on all relevant places. Honza > > -- > H.J.