[llvm] r346973 - [X86] Guess that a CPU is Icelake it if reports support for AVX512VBMI2.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 15 10:11:53 PST 2018
Author: ctopper
Date: Thu Nov 15 10:11:52 2018
New Revision: 346973
URL: http://llvm.org/viewvc/llvm-project?rev=346973&view=rev
Log:
[X86] Guess that a CPU is Icelake it if reports support for AVX512VBMI2.
Modified:
llvm/trunk/lib/Support/Host.cpp
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=346973&r1=346972&r2=346973&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Thu Nov 15 10:11:52 2018
@@ -690,6 +690,12 @@ getIntelProcessorTypeAndSubtype(unsigned
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;
More information about the llvm-commits
mailing list