This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: i386 RTX_COST tweeks take 2
- To: Richard Henderson <rth at redhat dot com>, Jan Hubicka <jh at suse dot cz>, Andi Kleen <ak at suse dot de>, gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Subject: Re: i386 RTX_COST tweeks take 2
- From: Jan Hubicka <jh at suse dot cz>
- Date: Wed, 7 Nov 2001 13:36:57 +0100
- References: <20011103174136.A23260@atrey.karlin.mff.cuni.cz.suse.lists.egcs> <Pine.LNX.4.33L2.0111050649160.30025-100000@kevin.inet.suse.lists.egcs> <20011105154541.A9715@atrey.karlin.mff.cuni.cz.suse.lists.egcs> <p73pu6wyb1w.fsf@amdsim2.suse.de> <20011106175612.B8917@atrey.karlin.mff.cuni.cz> <20011106235244.I29844@redhat.com>
> 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