From 8cfbac1c4c6dbea91d5574df6ef49f1d1e63a2d3 Mon Sep 17 00:00:00 2001 From: uros Date: Thu, 23 Nov 2017 16:07:25 +0000 Subject: [PATCH] * config/i386/i386.h (TARGET_PREFER_AVX256): Also enable when TARGET_PREFER_AVX128 is set. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255105 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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) -- 2.11.4.GIT