> -----Original Message-----
> From: Jan Hubicka [mailto:[email protected]]
> Sent: 21 October 2013 13:21
> To: Paulo Matos
> Cc: Richard Biener; Mike Stump; Kyrill Tkachov; [email protected]; Jan
> Hubicka ([email protected])
> Subject: Re: [PATCH] Fix PR58682
> 
> This won't work - the max_count is there to get things correctly scaled by
> badness calculation.
> Changing max_count would mean the need to recompute all badnesses in the 
> fibheap
> keys.
> I would just cap the edge_count in badness calculation.
> 
> Honza
> 

Makes sense. Thanks for the comment. I have created a new patch. Now attached.

2013-10-21  Paulo Matos  <[email protected]>

        * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
        calculations.

-- 
PMatos

Attachment: pr58682-v2.patch
Description: pr58682-v2.patch

Reply via email to