This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Always avoid lea if possible on x86
- From: Bernd Schmidt <bernds at codesourcery dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: "H.J. Lu" <hongjiu dot lu at intel dot com>, gcc-patches at gcc dot gnu dot org, Uros Bizjak <ubizjak at gmail dot com>
- Date: Tue, 17 Aug 2010 17:05:11 +0200
- Subject: Re: PATCH: Always avoid lea if possible on x86
- References: <20100817144925.GA26996@intel.com>
On 08/17/2010 04:49 PM, H.J. Lu wrote:
> We added ix86_lea_for_add_ok and modified *add<mode>_1 to make sure
> that we use LEA on address and ADD on non-address for TARGET_OPT_AGU.
> It turned out ADD is always faster than LEA on all processors, except for
> TARGET_OPT_AGU. This patch changes *add<mode>_1 and ix86_lea_for_add_ok
> to avoid lea for !TARGET_OPT_AGU processors. OK for trunk?
Yes, looks better. Thanks.
Bernd