[X86] Fix cpu name typos
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 28 Oct 2020 15:50:32 +0000 (15:50 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 28 Oct 2020 15:50:53 +0000 (15:50 +0000)
As discussed on PR26418 rGea84dc9500df incorrectly set the knl cpuname to tremont (and missed out the tremont cpuname entirely).

llvm/lib/Support/Host.cpp

index e30ccfc..b41717d 100644 (file)
@@ -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;