This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/2] i386: Assume Skylake for unknown models with clflushopt
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Matt Turner <mattst88 at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jan Hubicka <hubicka at ucw dot cz>, "H . J . Lu" <hjl dot tools at gmail dot com>
- Date: Sun, 18 Jun 2017 19:57:29 +0200
- Subject: Re: [PATCH 2/2] i386: Assume Skylake for unknown models with clflushopt
- Authentication-results: sourceware.org; auth=none
- References: <20170616214249.21194-1-mattst88@gmail.com> <20170616214249.21194-2-mattst88@gmail.com>
On Fri, Jun 16, 2017 at 11:42 PM, Matt Turner <mattst88@gmail.com> wrote:
> gcc/
> * config/i386/driver-i386.c (host_detect_local_cpu): Assume
> skylake for unknown models with clflushopt.
Also OK.
Thanks,
Uros.
> ---
> 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
>