Re: Fix profile updatin in tree-ssa-threadupdate

2019-12-06 Thread Jeff Law
On Thu, 2019-12-05 at 11:12 +0100, Jan Hubicka wrote: > Hi, > this patch makes tree-ssa-threadupdate to not leave basic blocks with > undefined counts in the program. > > create_block_for_threading sets counts as follows: > > /* Zero out the profile, since the block is unreachable for > now.

Fix profile updatin in tree-ssa-threadupdate

2019-12-05 Thread Jan Hubicka
Hi, this patch makes tree-ssa-threadupdate to not leave basic blocks with undefined counts in the program. create_block_for_threading sets counts as follows: /* Zero out the profile, since the block is unreachable for now. */ rd->dup_blocks[count]->count = profile_count::uninitialized ();