summaryrefslogtreecommitdiff
path: root/gcc/config/i386/i386.opt
diff options
context:
space:
mode:
authorcfang <cfang@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-29 17:53:49 +0000
committercfang <cfang@138bc75d-0d04-0410-961f-82ee72b054a4>2011-06-29 17:53:49 +0000
commit2aba8c96ff2c4ef49ec3ecc573b9e93b98b15e6e (patch)
tree27d28736764410b2e6f2d4484a38e12e0a3ff7fc /gcc/config/i386/i386.opt
parentbd1f39ce52d29a9be224aed5d5debb565d4a282f (diff)
downloadgcc-2aba8c96ff2c4ef49ec3ecc573b9e93b98b15e6e.tar.gz
Auto-vectorizer generates 128-bit AVX insns by default for bdver1.
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175661 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/i386.opt')
-rw-r--r--gcc/config/i386/i386.opt2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt
index 21e0def1549..9886b7bbce4 100644
--- a/gcc/config/i386/i386.opt
+++ b/gcc/config/i386/i386.opt
@@ -388,7 +388,7 @@ Do dispatch scheduling if processor is bdver1 and Haifa scheduling
is selected.
mprefer-avx128
-Target Report Var(flag_prefer_avx128) Init(0)
+Target Report Mask(PREFER_AVX128) SAVE
Use 128-bit AVX instructions instead of 256-bit AVX instructions in the auto-vectorizer.
;; ISA support