Re: Fix x86_64 fdo+lto bootstrap

2017-11-06 Thread Jan Hubicka
> On Mon, Nov 06, 2017 at 02:47:52PM +0100, Jan Hubicka wrote: > > Hi, > > this patch fixes sanity checking ICE with FDO bootstrap. > > The problem is when ENTRY_BLOCK_PTR count is zero and function is being > > inlined we disabled scaling. This is no longer correct because scaling > > also involve

Re: Fix x86_64 fdo+lto bootstrap

2017-11-06 Thread Marek Polacek
On Mon, Nov 06, 2017 at 02:47:52PM +0100, Jan Hubicka wrote: > Hi, > this patch fixes sanity checking ICE with FDO bootstrap. > The problem is when ENTRY_BLOCK_PTR count is zero and function is being > inlined we disabled scaling. This is no longer correct because scaling > also involves conversion

Fix x86_64 fdo+lto bootstrap

2017-11-06 Thread Jan Hubicka
Hi, this patch fixes sanity checking ICE with FDO bootstrap. The problem is when ENTRY_BLOCK_PTR count is zero and function is being inlined we disabled scaling. This is no longer correct because scaling also involves conversion between local and global profiles. Bootstrapped/regtested x86_64-linu