From 52ec0726926b9d5adaa7c6142052a5e405443855 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 10 Aug 2015 18:59:35 +0000 Subject: [PATCH] Update -mtune=knl for Knights Landing MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit From: https://software.intel.com/sites/default/files/managed/e9/b5/Knights-Corner-is-your-path-to-Knights-Landing.pdf Knights Landing is “Based on Intel Atom core (based on Silvermont microarchitecture) with many HPC enhancements.” This patch replaces CPU_KNL with CPU_SLM to tune for Knights Landing. * config/i386/i386.c (processor_alias_table): Replace CPU_KNL with CPU_SLM. * config/i386/i386.md (cpu): Remove knl. From-SVN: r226765 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 2 +- gcc/config/i386/i386.md | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index efc177c2c75..8025902ccdd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-08-10 H.J. Lu + + * config/i386/i386.c (processor_alias_table): Replace CPU_KNL + with CPU_SLM. + * config/i386/i386.md (cpu): Remove knl. + 2015-08-10 Thomas Schwinge PR libgomp/65742 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 0b785d8946b..57d874b87d3 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3351,7 +3351,7 @@ ix86_option_override_internal (bool main_args_p, {"atom", PROCESSOR_BONNELL, CPU_ATOM, PTA_BONNELL}, {"silvermont", PROCESSOR_SILVERMONT, CPU_SLM, PTA_SILVERMONT}, {"slm", PROCESSOR_SILVERMONT, CPU_SLM, PTA_SILVERMONT}, - {"knl", PROCESSOR_KNL, CPU_KNL, PTA_KNL}, + {"knl", PROCESSOR_KNL, CPU_SLM, PTA_KNL}, {"intel", PROCESSOR_INTEL, CPU_SLM, PTA_NEHALEM}, {"geode", PROCESSOR_GEODE, CPU_GEODE, PTA_MMX | PTA_3DNOW | PTA_3DNOW_A | PTA_PREFETCH_SSE | PTA_PRFCHW}, diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 9ffe9aaa650..e6c2d30e507 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -409,7 +409,7 @@ ;; Processor type. (define_attr "cpu" "none,pentium,pentiumpro,geode,k6,athlon,k8,core2,nehalem, atom,slm,generic,amdfam10,bdver1,bdver2,bdver3,bdver4, - btver2,knl" + btver2" (const (symbol_ref "ix86_schedule"))) ;; A basic instruction type. Refinements due to arguments to be -- 2.30.2