This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR58682


> > -----Original Message-----
> > From: Jan Hubicka [mailto:hubicka@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 (hubicka@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  <pmatos@broadcom.com>
> 
> 	* ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
> 	calculations.

OK, thanks!

Honza


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]