This is the mail archive of the gcc@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]

Re: register move costs



  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


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