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: Better estimations of costs in outof-ssa


On Sat, 2005-07-30 at 03:53, Jan Hubicka wrote:
> > On Fri, 2005-07-29 at 17:21, Jan Hubicka wrote:

> > > OK, this moves the cost computation into add_coalesce itself.
> > > It seems dificult to merge this somewhat further with other places we
> > > compute simlar costs (such as reg-alloc) because of stubble differences
> > > in between these..
> > 
> > Ick.  Why should add_coalesce have to know or care about hot blocks and
> > critical edges?  It is intended to just take a simple cost.   
> > 
> > I would prefer to see the costs calculated by another small function or
> > macro.   If I want to use add_coalesce for another purpose now (and
> > coalesce lists are generic), I will have to write another add_coalesce,
> > or create dummy values for those parameters I don't care about, and have
> > to figure out what the correct dummy values are.
> 
> Well, I have dificult to think of sane using of coalescing list where
> the costs won't be based on the profile, but here is updated patch.
> Bootstrapping/regtesting i686-pc-gnu-linux, OK?

works for me :-)

Andrew




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