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: i386 RTX_COST tweeks take 2


> On Tue, Nov 06, 2001 at 05:56:12PM +0100, Jan Hubicka wrote:
> > 	* expmed.c (expand_mult): Force operand to register before computing
> > 	cost.
> > 	* i386.c (x86_decompose_lea): New global vairable.
> > 	* i386.h (x86_decompose_lea): Declare.
> > 	(TARGET_DECOMPOSE_LEA): New macro.
> > 	(RTX_COST): Handle leas properly.
> 
> Ok but, 
> 
> > +       /* op0 must be register to make mult_cost match the precomputed shiftadd_cost
> > +          array.  */
> 
> Wrap this properly.

Thanks!
On related note, would be possible to take a look at:

http://gcc.gnu.org/ml/gcc-patches/2001-08/msg01491.html

It saves one extra copy after expanded multiplies.

Honza


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