diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-03-31 06:18:31 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-03-31 06:18:31 +0000 |
commit | 545b951d3c0be04a0f1bc94075c40226f18d8a2d (patch) | |
tree | 2738ce08f554bfaa93bc4a4201941053b0adf053 /llvm/lib/Support/Host.cpp | |
parent | f8cfe1ded6adbde4b56f772dba1975544c653632 (diff) | |
download | llvm-545b951d3c0be04a0f1bc94075c40226f18d8a2d.zip llvm-545b951d3c0be04a0f1bc94075c40226f18d8a2d.tar.gz llvm-545b951d3c0be04a0f1bc94075c40226f18d8a2d.tar.bz2 |
[X86] Stop changing result of getHostCPUName based on whether the processor supports AVX. getHostCPUFeatures should be used instead to determine whether to support AVX.
llvm-svn: 233674
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 00b9011..726961a 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -334,8 +334,7 @@ StringRef sys::getHostCPUName() { // 45nm: Penryn , Wolfdale, Yorkfield (XE) case 29: // Intel Xeon processor MP. All processors are manufactured using // the 45 nm process. - // Not all Penryn processors support SSE 4.1 (such as the Pentium brand) - return HasSSE41 ? "penryn" : "core2"; + return "penryn"; case 26: // Intel Core i7 processor and Intel Xeon processor. All // processors are manufactured using the 45 nm process. @@ -353,31 +352,23 @@ StringRef sys::getHostCPUName() { case 42: // Intel Core i7 processor. All processors are manufactured // using the 32 nm process. case 45: - // Not all Sandy Bridge processors support AVX (such as the Pentium - // versions instead of the i7 versions). - return HasAVX ? "sandybridge" : "nehalem"; + return "sandybridge"; // Ivy Bridge: case 58: case 62: // Ivy Bridge EP - // Not all Ivy Bridge processors support AVX (such as the Pentium - // versions instead of the i7 versions). - return HasAVX ? "ivybridge" : "nehalem"; + return "ivybridge"; // Haswell: case 60: case 63: case 69: case 70: - // Not all Haswell processors support AVX2 (such as the Pentium - // versions instead of the i7 versions). - return HasAVX2 ? "haswell" : "nehalem"; + return "haswell"; // Broadwell: case 61: - // Not all Broadwell processors support AVX2 (such as the Pentium - // versions instead of the i7 versions). - return HasAVX2 ? "broadwell" : "nehalem"; + return "broadwell"; case 28: // Most 45 nm Intel Atom processors case 38: // 45 nm Atom Lincroft |