Update -mtune=knl for Knights Landing
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 10 Aug 2015 18:59:35 +0000 (18:59 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 10 Aug 2015 18:59:35 +0000 (11:59 -0700)
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
gcc/config/i386/i386.c
gcc/config/i386/i386.md

index efc177c2c7548f95f6b67ae3c96d84d4277c2a9a..8025902ccdd609f8e5204f79ee71975c2ea613f2 100644 (file)
@@ -1,3 +1,9 @@
+2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * 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  <thomas@codesourcery.com>
 
        PR libgomp/65742
index 0b785d8946b0617ece0ede808a42559c61234fff..57d874b87d3bf54fff6a350c0bb349913e3042de 100644 (file)
@@ -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},
index 9ffe9aaa6501415c4ae14b3dbd7e97e7cbc52745..e6c2d30e507cb521a2f0780788281dd99c0b2150 100644 (file)
 ;; 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