> -----Original Message-----
> From: Jan Hubicka [mailto:hubi...@ucw.cz]
> Sent: 21 October 2013 13:21
> To: Paulo Matos
> Cc: Richard Biener; Mike Stump; Kyrill Tkachov; gcc-patches@gcc.gnu.org; Jan
> Hubicka (hubi...@ucw.cz)
> 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  <pma...@broadcom.com>

        * 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