i386 RTX_COST tweeks take 2
Jan Hubicka
jh@suse.cz
Wed Nov 7 04:37:00 GMT 2001
> 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
More information about the Gcc-patches
mailing list