[compiler-rt] 2bb822b - [X86] Add family/model for Intel Comet Lake CPUs for -march=native and function multiversioning
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun May 24 00:29:51 PDT 2020
Author: Craig Topper
Date: 2020-05-24T00:29:25-07:00
New Revision: 2bb822bc902a094347c4e3a885d1563200907f20
URL: https://github.com/llvm/llvm-project/commit/2bb822bc902a094347c4e3a885d1563200907f20
DIFF: https://github.com/llvm/llvm-project/commit/2bb822bc902a094347c4e3a885d1563200907f20.diff
LOG: [X86] Add family/model for Intel Comet Lake CPUs for -march=native and function multiversioning
This adds the family/model returned by CPUID for some Intel
Comet Lake CPUs. Instruction set and tuning wise these are
the same as "skylake".
These are not in the Intel SDM yet, but these should be correct.
Added:
Modified:
compiler-rt/lib/builtins/cpu_model.c
llvm/lib/Support/Host.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/cpu_model.c b/compiler-rt/lib/builtins/cpu_model.c
index 7c6dec69ac80..270eb88ebcaf 100644
--- a/compiler-rt/lib/builtins/cpu_model.c
+++ b/compiler-rt/lib/builtins/cpu_model.c
@@ -345,6 +345,8 @@ static void getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
case 0x5e: // Skylake desktop
case 0x8e: // Kaby Lake mobile
case 0x9e: // Kaby Lake desktop
+ case 0xa5: // Comet Lake-H/S
+ case 0xa6: // Comet Lake-U
*Type = INTEL_COREI7; // "skylake"
*Subtype = INTEL_COREI7_SKYLAKE;
break;
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 67db360a3954..d9187efafbc1 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -700,6 +700,8 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
case 0x5e: // Skylake desktop
case 0x8e: // Kaby Lake mobile
case 0x9e: // Kaby Lake desktop
+ case 0xa5: // Comet Lake-H/S
+ case 0xa6: // Comet Lake-U
*Type = X86::INTEL_COREI7; // "skylake"
*Subtype = X86::INTEL_COREI7_SKYLAKE;
break;
More information about the llvm-commits
mailing list