i386.h (TARGET_PREFER_AVX256): Also enable when TARGET_PREFER_AVX128 is set.
authorSergey Shalnov <Sergey.Shalnov@intel.com>
Thu, 23 Nov 2017 16:07:25 +0000 (16:07 +0000)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 23 Nov 2017 16:07:25 +0000 (17:07 +0100)
* config/i386/i386.h (TARGET_PREFER_AVX256): Also
enable when TARGET_PREFER_AVX128 is set.

From-SVN: r255105

gcc/ChangeLog
gcc/config/i386/i386.h

index b9852e98e832bb424e76b579d57b3b01e69356f9..2cc6402df263833af8454a2a80841fc527764dbb 100644 (file)
@@ -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
index fde8467b97c5900cf8519f940f81f73fbb52f87f..630b7c5a4aa8cfc9a0ffd5230a833ebd4607e76e 100644 (file)
@@ -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)