diff options
author | Sergey Shalnov <Sergey.Shalnov@intel.com> | 2017-11-23 16:07:25 +0000 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2017-11-23 17:07:25 +0100 |
commit | 02a703675c455492a0606579a37d373e9777284c (patch) | |
tree | b9ab4dc269bfa93c870af20cc0f046db0218919d | |
parent | 7349698ee4147cf36862081e21736d4c2b96b9d9 (diff) | |
download | gcc-02a703675c455492a0606579a37d373e9777284c.zip gcc-02a703675c455492a0606579a37d373e9777284c.tar.gz gcc-02a703675c455492a0606579a37d373e9777284c.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b9852e9..2cc6402 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-23 Sergey Shalnov <Sergey.Shalnov@intel.com> + + * config/i386/i386.h (TARGET_PREFER_AVX256): Also + enable when TARGET_PREFER_AVX128 is set. + 2017-11-23 Jan Hubicka <hubicka@ucw.cz> * 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 fde8467..630b7c5 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) |