Re: PR middle-end/48641 (tree-ssa-threadupdate messing up profile)

2011-12-30 Thread Richard Guenther
On Tue, Dec 27, 2011 at 11:44 AM, Jan Hubicka wrote: > Hi > this patch solves problem with negative frequency that is result of overflow > in profile updating code.  The testcase shows quite pathological case where > profile is misguessed and the mistake is propagated across the CFG by jump > thre

PR middle-end/48641 (tree-ssa-threadupdate messing up profile)

2011-12-27 Thread Jan Hubicka
Hi this patch solves problem with negative frequency that is result of overflow in profile updating code. The testcase shows quite pathological case where profile is misguessed and the mistake is propagated across the CFG by jump threading. I can't of think of much better solution than adding a c