Re: computation_cost too blind to hard regs

2005-02-21 Thread Richard Henderson
On Mon, Feb 21, 2005 at 07:36:33PM -0500, DJ Delorie wrote: > * tree-ssa-loop-ivopts.c (computation_cost): Start register > numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard > registers in unsupported ways. > * expmed.c (init_expmed): Likewise. Ok. r~

Re: computation_cost too blind to hard regs

2005-02-21 Thread DJ Delorie
> On Jan 19, 2005, at 22:48, Richard Henderson wrote: > > On Wed, Jan 19, 2005 at 09:19:58PM -0500, DJ Delorie wrote: > >> - int regno = 0; > >> + int regno = FIRST_PSEUDO_REGISTER; > > > > To be totally safe, you need LAST_VIRTUAL_REGISTER+1. > > Also, this definitely needs a comment. Ok, I'm