BCT optimization

Jeffrey A Law law@cygnus.com
Wed Sep 30 19:18:00 GMT 1998


  In message < 9810010200.AA48040@marc.watson.ibm.com >you write:
  > 	A problem with assigning a pseudo and allowing reload to choose
  > the register is that this optimization is specifically scheduling the use
  > of this resource based on additional criteria about when it is
  > beneficial.  I am a little concerned about not stuffing in the count or
  > loop register early if reload thinks it is smarter and wants to override
  > the cost-benefit decision about that resource.
Note, we still use the same criteria for creating these patterns in loop.

For the ppc, we'll never have more than one pseudo which prefers the count
register live at the same time.  Every pseudo that is used in this manner
should be allocated to the count register by global register allocation.  If
global or reload ever spills the count reg or uses it for some other purpose,
then we should figure out why since that shouldn't be happening if we do things
correctly.

jeff









More information about the Gcc mailing list