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: Make SPEC2000 and the new allocator


> > > Ahh.
> > > At least, however, you should be able to spill to the xmm registers 
> > > without femms, no?
> > Yes, but the integer->xmm move is expensive.  You should at least
> > consult register move cost whether it is cheaper than memory spill.  For
> > Athlon reg->xmm move is more expensive than int->mem->xmm move and even
> > for P3/4 I believe int->xmm->int is more expensive than int->mem->int
> > 
> > If I understand it properly the spill registers are supposed to be
> > spilled by reload, so why to worry at first place?
> 
> No, we insert spill code, not reload.

OK, then I guess you can compute the primary register class based on
REGISTER_MOVE_COST as largest class the register is cheapest to move into
(this is done in the reload function I quoted) and alternate class as a
largest class register is cheaper to move into than move into memory...

Honza
> 
> > 
> > Honza
> > > --Dan
> > 
> > 


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