Skip to content

Commit 5ad2592

Browse files
RKSimontstellar
authored andcommitted
[X86] Fix cpu name typos
As discussed on PR26418 rGea84dc9500df incorrectly set the knl cpuname to tremont (and missed out the tremont cpuname entirely). (cherry picked from commit 0d17dc2)
1 parent 8fc424f commit 5ad2592

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Support/Host.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,14 +760,15 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
760760
*Type = X86::INTEL_GOLDMONT_PLUS;
761761
break;
762762
case 0x86:
763+
CPU = "tremont";
763764
*Type = X86::INTEL_TREMONT;
764765
break;
765766

767+
// Xeon Phi (Knights Landing + Knights Mill):
766768
case 0x57:
767-
CPU = "tremont";
769+
CPU = "knl";
768770
*Type = X86::INTEL_KNL;
769771
break;
770-
771772
case 0x85:
772773
CPU = "knm";
773774
*Type = X86::INTEL_KNM;

0 commit comments

Comments
 (0)