https://github.com/libenc updated https://github.com/llvm/llvm-project/pull/67150
>From 6f0e5d947d05105b3480221b0d9759216596268a Mon Sep 17 00:00:00 2001 From: libenc <75132456+lib...@users.noreply.github.com> Date: Fri, 22 Sep 2023 22:43:46 +0800 Subject: [PATCH] [X86] Add detection for more Tremont models Fix the issue that only the server series Tremont processors (Snow Ridge & Elkhart Lake) can be detected as Tremont, while the client series (Jasper Lake & Lakefield) will be guessed as Goldmont. --- compiler-rt/lib/builtins/cpu_model.c | 2 ++ llvm/lib/TargetParser/Host.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/compiler-rt/lib/builtins/cpu_model.c b/compiler-rt/lib/builtins/cpu_model.c index 6a0cc8f7a402dad..32f38b5c08f096b 100644 --- a/compiler-rt/lib/builtins/cpu_model.c +++ b/compiler-rt/lib/builtins/cpu_model.c @@ -553,6 +553,8 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model, *Type = INTEL_GOLDMONT_PLUS; break; case 0x86: + case 0x8a: // Lakefield + case 0x9c: // Jasper Lake CPU = "tremont"; *Type = INTEL_TREMONT; break; diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp index c79595295d1bd81..c743de893447844 100644 --- a/llvm/lib/TargetParser/Host.cpp +++ b/llvm/lib/TargetParser/Host.cpp @@ -913,6 +913,8 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model, *Type = X86::INTEL_GOLDMONT_PLUS; break; case 0x86: + case 0x8a: // Lakefield + case 0x9c: // Jasper Lake CPU = "tremont"; *Type = X86::INTEL_TREMONT; break; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits