Re: [RFC] ipa-cp: Fix PGO regression caused by r278808

2019-12-13 Thread luoxhu
Thanks Honza, On 2019/12/10 19:06, Jan Hubicka wrote: >> Hi, >> >> On Tue, Dec 10 2019, Jan Hubicka wrote: >>> Hi, >>> I think the updating should treat self recursive edges as loops: that is >>> calculate SUM of counts incomming edges which are not self recursive, >>> calculate probability of sel

Re: [RFC] ipa-cp: Fix PGO regression caused by r278808

2019-12-10 Thread Jan Hubicka
> Hi, > > On Tue, Dec 10 2019, Jan Hubicka wrote: > > Hi, > > I think the updating should treat self recursive edges as loops: that is > > calculate SUM of counts incomming edges which are not self recursive, > > calculate probability of self recursing and then set count as > > SUM * (1/(1-probabi

Re: [RFC] ipa-cp: Fix PGO regression caused by r278808

2019-12-10 Thread Martin Jambor
Hi, On Tue, Dec 10 2019, Jan Hubicka wrote: > Hi, > I think the updating should treat self recursive edges as loops: that is > calculate SUM of counts incomming edges which are not self recursive, > calculate probability of self recursing and then set count as > SUM * (1/(1-probability_of_recursio

Re: [RFC] ipa-cp: Fix PGO regression caused by r278808

2019-12-10 Thread Jan Hubicka
Hi, I think the updating should treat self recursive edges as loops: that is calculate SUM of counts incomming edges which are not self recursive, calculate probability of self recursing and then set count as SUM * (1/(1-probability_of_recursion)) we do same thing when computing counts withing loop

Re: [RFC] ipa-cp: Fix PGO regression caused by r278808

2019-12-10 Thread Martin Liška
CC'ing Martin and Honza. Martin

[RFC] ipa-cp: Fix PGO regression caused by r278808

2019-12-09 Thread Xiong Hu Luo
The performance of exchange2 built with PGO will decrease ~28% by r278808 due to profile count set incorrectly. The cloned nodes are updated to a very small count caused later pass cunroll fail to unroll the recursive function in exchange2, This patch enables adding orig_sum to the new nodes for s