From: Matt Turner <mattst88@gmail.com>
To: gcc-patches@gcc.gnu.org
Cc: Jan Hubicka <hubicka@ucw.cz>, Uros Bizjak <ubizjak@gmail.com>,
"H . J . Lu" <hjl.tools@gmail.com>,
Matt Turner <mattst88@gmail.com>
Subject: [PATCH 2/2] i386: Assume Skylake for unknown models with clflushopt
Date: Fri, 16 Jun 2017 21:43:00 -0000 [thread overview]
Message-ID: <20170616214249.21194-2-mattst88@gmail.com> (raw)
In-Reply-To: <20170616214249.21194-1-mattst88@gmail.com>
gcc/
* config/i386/driver-i386.c (host_detect_local_cpu): Assume
skylake for unknown models with clflushopt.
---
gcc/config/i386/driver-i386.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index 09faad0af0e..570c49031bd 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -797,6 +797,9 @@ const char *host_detect_local_cpu (int argc, const char **argv)
/* Assume Knights Landing. */
if (has_avx512f)
cpu = "knl";
+ /* Assume Skylake. */
+ else if (has_clflushopt)
+ cpu = "skylake";
/* Assume Broadwell. */
else if (has_adx)
cpu = "broadwell";
--
2.13.0
next prev parent reply other threads:[~2017-06-16 21:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-16 21:43 [PATCH 1/2] i386: Consider Kaby Lake to be equivalent to Skylake Matt Turner
2017-06-16 21:43 ` Matt Turner [this message]
2017-06-18 17:57 ` [PATCH 2/2] i386: Assume Skylake for unknown models with clflushopt Uros Bizjak
2017-06-18 17:56 ` [PATCH 1/2] i386: Consider Kaby Lake to be equivalent to Skylake Uros Bizjak
2017-06-22 17:34 ` Matt Turner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170616214249.21194-2-mattst88@gmail.com \
--to=mattst88@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=hjl.tools@gmail.com \
--cc=hubicka@ucw.cz \
--cc=ubizjak@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).