[PATCH, i386] Enable -mprefer-avx128 by default for Bulldozer
Jakub Jelinek
jakub@redhat.com
Wed Jun 29 08:18:00 GMT 2011
On Wed, Jun 29, 2011 at 09:49:52AM +0200, Jan Hubicka wrote:
> > * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask option.
> >
> > * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL entry.
> > (TARGET_AVX128_OPTIMAL): New definition.
> >
> > * config/i386/i386.c (initial_ix86_tune_features): Initialize
> > X86_TUNE_AVX128_OPTIMAL entry.
> > (ix86_option_override_internal): Enable the generation
> > of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
> > (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
> > (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
>
> OK for mainline. For 4.6 it is RM's call.
For 4.6 it is fine as well.
Jakub
More information about the Gcc-patches
mailing list