Re: Fix profile updating in cfgbuild

2017-06-08 Thread Jan Hubicka
Hi, this is what I comitted Index: ChangeLog === --- ChangeLog (revision 249007) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2017-06-08 Jan Hubicka + + * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko. + 2017-06-0

Re: Fix profile updating in cfgbuild

2017-06-07 Thread Jan Hubicka
> > { > >-bb->count += e->count; > >+if (e->count.initialized_p ()) > >+ { > >+bb->count += e->count; > >+initialized_src = true; > >+ } > >+else > >+ uninitialized_src = false; > >

Re: Fix profile updating in cfgbuild

2017-06-07 Thread Bernhard Reutner-Fischer
On 7 June 2017 08:44:13 CEST, Jan Hubicka wrote: >Hi >the following patch makes cfgbuild to preserve profile when loops are >introduced at RTL level (not very well, but at least do not throw it >all >away) and also avoids re-computing probabilities when there are no >changes to CFG. > >Bootstrappe

Fix profile updating in cfgbuild

2017-06-06 Thread Jan Hubicka
Hi the following patch makes cfgbuild to preserve profile when loops are introduced at RTL level (not very well, but at least do not throw it all away) and also avoids re-computing probabilities when there are no changes to CFG. Bootstrapped/regtested x86_64-linux. Comitted. Honza Index: cfgbuil