Re: [GOOGLE] Adjust profile for AutoFDO

2014-01-27 Thread Xinliang David Li
Ok. For future cleanup, It will be better to define a new helper function is_profile_missing_p (cfun) -- which checks entry count for instrumentation based FDO, and something else for autofdo. David On Fri, Jan 24, 2014 at 9:28 PM, Dehao Chen wrote: > This patch fixes performance regression for

[GOOGLE] Adjust profile for AutoFDO

2014-01-24 Thread Dehao Chen
This patch fixes performance regression for AutoFDO. When the entry block count is 0, which is quite possible in AutoFDO, it can still make right optimization decision. Bootstrapped passed regression test and performance test (improve 0.5% on average). OK for google-4_8? Thanks, Dehao Index: gcc