This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Core 2/i7 tuning results and analysis
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Maxim Kuvyrkov <maxim at codesourcery dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Bernd Schmidt <bernds at codesourcery dot com>
- Date: Fri, 15 Oct 2010 15:58:51 -0700
- Subject: Re: Core 2/i7 tuning results and analysis
- References: <4CB82839.5050609@codesourcery.com>
On Fri, Oct 15, 2010 at 3:08 AM, Maxim Kuvyrkov <maxim@codesourcery.com> wrote:
> + 0001-Basic-support-for-Core-i7.patch
>
> Baseline.
>
> The patch makes GCC recognize "corei7" for -mtune= and -march= options.
> The patch sets tuning for Core i7 to that of -mtune=generic or
> -mtune=generic64 depending on the {-m32/-m64} option. ?The generic CPU is
> special in the sense that has different tuning for 32-bit and 64-bit modes.
> ?The patch adds same capability to use different tuning for different ABI
> for Core i7.
>
I don't think it is needed. We added GENERIC32/GENRIC64 so that
we can tune for 32bit/64bit in i386.c and *.md. PTA_TUNE32 is only
used in ix86_option_override_internal where we know we are compiling
for 32bit or 64bit. We can use TARGET_64BIT instead of adding
PTA_TUNE32.
--
H.J.