public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8190] Fix handling of X86_TUNE_AVOID_512FMA_CHAINS.
@ 2024-01-17 18:14 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2024-01-17 18:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f74dd70c3c7ef2ac19bca33de5fb03a73fbcd339
commit r14-8190-gf74dd70c3c7ef2ac19bca33de5fb03a73fbcd339
Author: Jan Hubicka <jh@suse.cz>
Date: Wed Jan 17 19:14:16 2024 +0100
Fix handling of X86_TUNE_AVOID_512FMA_CHAINS.
I have noticed quite bad pasto in handling of X86_TUNE_AVOID_512FMA_CHAINS. At the
moment it is ignored, but X86_TUNE_AVOID_256FMA_CHAINS controls 512FMA too.
This patch fixes it, we may want to re-check how that works on AVX512 machines.
gcc/ChangeLog:
* config/i386/i386-options.cc (ix86_option_override_internal): Fix
handling of X86_TUNE_AVOID_512FMA_CHAINS.
Diff:
---
gcc/config/i386/i386-options.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc
index 3605c2c53fb..b6f634e9a32 100644
--- a/gcc/config/i386/i386-options.cc
+++ b/gcc/config/i386/i386-options.cc
@@ -3248,7 +3248,7 @@ ix86_option_override_internal (bool main_args_p,
= (cf_protection_level) (opts->x_flag_cf_protection | CF_SET);
}
- if (ix86_tune_features [X86_TUNE_AVOID_256FMA_CHAINS])
+ if (ix86_tune_features [X86_TUNE_AVOID_512FMA_CHAINS])
SET_OPTION_IF_UNSET (opts, opts_set, param_avoid_fma_max_bits, 512);
else if (ix86_tune_features [X86_TUNE_AVOID_256FMA_CHAINS])
SET_OPTION_IF_UNSET (opts, opts_set, param_avoid_fma_max_bits, 256);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-17 18:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-17 18:14 [gcc r14-8190] Fix handling of X86_TUNE_AVOID_512FMA_CHAINS Jan Hubicka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).