From da740f1e8ece60eb8eb804004d4b6e07b4f14d5a Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 23 Mar 2015 00:15:06 +0000 Subject: [PATCH] [X86] Add one stepping of Broadwell to the CPU name autodetection for march=native. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232927 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Host.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index 42bc3426301..02638062153 100644 --- a/lib/Support/Host.cpp +++ b/lib/Support/Host.cpp @@ -361,6 +361,12 @@ StringRef sys::getHostCPUName() { // versions instead of the i7 versions). return HasAVX2 ? "core-avx2" : "corei7"; + // Broadwell: + case 61: + // Not all Broadwell processors support AVX too (such as the Pentium + // versions instead of the i7 versions). + return HasAVX2 ? "broadwell" : "corei7"; + case 28: // Most 45 nm Intel Atom processors case 38: // 45 nm Atom Lincroft case 39: // 32 nm Atom Medfield