[llvm] 0d17dc2 - [X86] Fix cpu name typos

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 28 08:54:25 PDT 2020


Author: Simon Pilgrim
Date: 2020-10-28T15:50:53Z
New Revision: 0d17dc2e75428885e37e53a1524ce7b607501cfa

URL: https://github.com/llvm/llvm-project/commit/0d17dc2e75428885e37e53a1524ce7b607501cfa
DIFF: https://github.com/llvm/llvm-project/commit/0d17dc2e75428885e37e53a1524ce7b607501cfa.diff

LOG: [X86] Fix cpu name typos

As discussed on PR26418 rGea84dc9500df incorrectly set the knl cpuname to tremont (and missed out the tremont cpuname entirely).

Added: 
    

Modified: 
    llvm/lib/Support/Host.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index e30ccfc2867f..b41717d96a12 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -767,14 +767,15 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
       *Type = X86::INTEL_GOLDMONT_PLUS;
       break;
     case 0x86:
+      CPU = "tremont";
       *Type = X86::INTEL_TREMONT;
       break;
 
+    // Xeon Phi (Knights Landing + Knights Mill):
     case 0x57:
-      CPU = "tremont";
+      CPU = "knl";
       *Type = X86::INTEL_KNL;
       break;
-
     case 0x85:
       CPU = "knm";
       *Type = X86::INTEL_KNM;


        


More information about the llvm-commits mailing list