Hi, GCC has the option "mprefer-avx128" to use 128-bit AVX registers instead of 256-bit AVX registers in the auto-vectorizer. This patch enables the command line option "mprefer-avx256" that reduces 512-bit registers usage in "march=skylake-avx512" mode. This is the initial implementation of the option. Currently, 512-bit registers might appears in some cases. I have a plan to continue fix the cases where 512-bit registers are appear. Sergey
2017-09-14 Sergey Shalnov sergey.shal...@intel.com * config/i386/i386.opt (mprefer-avx256): New flag. * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 256-bit AVX modes when the flag -mprefer-avx256 is on.
0001-Option-mprefer-avx256-added-for-Intel-AVX512-configu.patch
Description: 0001-Option-mprefer-avx256-added-for-Intel-AVX512-configu.patch