From 02a703675c455492a0606579a37d373e9777284c Mon Sep 17 00:00:00 2001 From: Sergey Shalnov Date: Thu, 23 Nov 2017 16:07:25 +0000 Subject: 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 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc') 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 + + * 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 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) -- cgit v1.1