[X86] Guess that a CPU is Icelake it if reports support for AVX512VBMI2.
llvm-svn: 346973
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index c616dbe..5a74a6b 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -690,6 +690,12 @@
break;
default: // Unknown family 6 CPU, try to guess.
+ if (Features & (1 << X86::FEATURE_AVX512VBMI2)) {
+ *Type = X86::INTEL_COREI7;
+ *Subtype = X86::INTEL_COREI7_ICELAKE_CLIENT;
+ break;
+ }
+
if (Features & (1 << X86::FEATURE_AVX512VBMI)) {
*Type = X86::INTEL_COREI7;
*Subtype = X86::INTEL_COREI7_CANNONLAKE;