This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: register move costs
- To: Ken Raeburn <raeburn at cygnus dot com>
- Subject: Re: register move costs
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 26 Feb 1998 00:15:38 -0700
- cc: egcs at cygnus dot com, gcc2 at cygnus dot com
- Reply-To: law at cygnus dot com
In message <9802250138.AA08390@cujo.cygnus.com>you write:
> On the Alpha and Sparc, at least, in EGCS, REGISTER_MOVE_COST is
> dependent on target flags that haven't been decoded at that point. So
> the computed arrays will not take cpu type specifications or other
> options into account. A patch is below to delay the initialization of
> these tables until after argument parsing. I tested this by looking
> at move_cost in gdb after starting a sparc compiler with and without
> "-mcpu=ultrasparc".
>
> GCC2 doesn't yet have any processor-dependent costs that I noticed, so
> there is no practical effect of this bug at this time, but I'd suggest
> fixing it all the same (not for 2.8.1 of course). The change should
> nearly identical.
>
> Ken
>
>
> Tue Feb 24 19:23:09 1998 Ken Raeburn <raeburn@cygnus.com>
>
> * regclass.c (init_reg_sets): Move initialization of register
> move-cost tables...
> (init_reg_sets_1): ...to here.
This looks good to me. Can you please install it into egcs.
Thanks!
jeff