diff options
author | Craig Topper <craig.topper@intel.com> | 2017-07-09 07:26:14 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-07-09 07:26:14 +0000 |
commit | 52cec3894aeedca7773e62250c26c595f9daf082 (patch) | |
tree | e38ff0040eb1b33a8b6813528a649e18eeb5dd77 /llvm | |
parent | 769cd05232c1df957fa60747b80e2821f979a91f (diff) | |
download | bcm5719-llvm-52cec3894aeedca7773e62250c26c595f9daf082.tar.gz bcm5719-llvm-52cec3894aeedca7773e62250c26c595f9daf082.zip |
[X86] Remove check for AVX512 support from skylake-avx512 detection in getHostCPUName.
Users of getHostCPUName should also use getHostCPUFeatures which will take care of making sure avx512 is disabled if the CPU doesn't support it. This is consistent with what we do for other CPUs.
llvm-svn: 307495
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 8469ae4f241..0c28c61dc21 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -681,12 +681,7 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model, // Skylake Xeon: case 0x55: *Type = INTEL_COREI7; - // Check that we really have AVX512 - if (Features & (1 << FEATURE_AVX512)) { - *Subtype = INTEL_COREI7_SKYLAKE_AVX512; // "skylake-avx512" - } else { - *Subtype = INTEL_COREI7_SKYLAKE; // "skylake" - } + *Subtype = INTEL_COREI7_SKYLAKE_AVX512; // "skylake-avx512" break; case 0x1c: // Most 45 nm Intel Atom processors |