From ef893a2a769b18c61953d80670b1db8c27bc44e0 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 23 Jul 2019 11:32:44 +0200 Subject: [PATCH] * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set of ZNVER2. From-SVN: r273729 --- gcc/ChangeLog | 7 +++++++ gcc/config/i386/x86-tune.def | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a84ebb6641..181ecc4ced9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-07-23 Jan Hubicka + + * config/i386/i386-options.c (ix86_option_override_internal): Default + PARAM_AVOID_FMA_MAX_BITS to 256 for znver2. + * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set + for ZNVER2. + 2019-07-23 Jan Hubicka * config/i386/x86-tune-costs.h (znver2_memcpy): Update. diff --git a/gcc/config/i386/x86-tune.def b/gcc/config/i386/x86-tune.def index 01e49867dfb..fd59a842658 100644 --- a/gcc/config/i386/x86-tune.def +++ b/gcc/config/i386/x86-tune.def @@ -431,6 +431,10 @@ DEF_TUNE (X86_TUNE_USE_GATHER, "use_gather", smaller FMA chain. */ DEF_TUNE (X86_TUNE_AVOID_128FMA_CHAINS, "avoid_fma_chains", m_ZNVER) +/* X86_TUNE_AVOID_256FMA_CHAINS: Avoid creating loops with tight 256bit or + smaller FMA chain. */ +DEF_TUNE (X86_TUNE_AVOID_256FMA_CHAINS, "avoid_fma256_chains", m_ZNVER2) + /*****************************************************************************/ /* AVX instruction selection tuning (some of SSE flags affects AVX, too) */ /*****************************************************************************/ -- 2.30.2