[llvm-branch-commits] [llvm] 5ad2592 - [X86] Fix cpu name typos
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 2 20:36:28 PST 2020
Author: Simon Pilgrim
Date: 2020-11-02T23:33:22-05:00
New Revision: 5ad2592b5dc039608eab8a07ce3bd0d8923f0516
URL: https://github.com/llvm/llvm-project/commit/5ad2592b5dc039608eab8a07ce3bd0d8923f0516
DIFF: https://github.com/llvm/llvm-project/commit/5ad2592b5dc039608eab8a07ce3bd0d8923f0516.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).
(cherry picked from commit 0d17dc2e75428885e37e53a1524ce7b607501cfa)
Added:
Modified:
llvm/lib/Support/Host.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 658c1ee74cfe..36cecf9b2a16 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -760,14 +760,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-branch-commits
mailing list