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; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits