From: Sergey Shalnov Date: Thu, 23 Nov 2017 16:07:25 +0000 (+0000) Subject: i386.h (TARGET_PREFER_AVX256): Also enable when TARGET_PREFER_AVX128 is set. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02a703675c455492a0606579a37d373e9777284c;p=gcc.git i386.h (TARGET_PREFER_AVX256): Also enable when TARGET_PREFER_AVX128 is set. * config/i386/i386.h (TARGET_PREFER_AVX256): Also enable when TARGET_PREFER_AVX128 is set. From-SVN: r255105 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9852e98e83..2cc6402df26 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-23 Sergey Shalnov + + * config/i386/i386.h (TARGET_PREFER_AVX256): Also + enable when TARGET_PREFER_AVX128 is set. + 2017-11-23 Jan Hubicka * ipa-profile.c (ipa_propagate_frequency_1): Use count instead of diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index fde8467b97c..630b7c5a4aa 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -2683,7 +2683,8 @@ extern void debug_dispatch_window (int); /* Use 128-bit AVX instructions in the auto-vectorizer. */ #define TARGET_PREFER_AVX128 (prefer_vector_width_type == PVW_AVX128) /* Use 256-bit AVX instructions in the auto-vectorizer. */ -#define TARGET_PREFER_AVX256 (prefer_vector_width_type == PVW_AVX256) +#define TARGET_PREFER_AVX256 (TARGET_PREFER_AVX128 \ + || prefer_vector_width_type == PVW_AVX256) #define IX86_HLE_ACQUIRE (1 << 16) #define IX86_HLE_RELEASE (1 << 17)