[llvm] r232927 - [X86] Add one stepping of Broadwell to the CPU name autodetection for march=native.

Craig Topper craig.topper at gmail.com
Sun Mar 22 17:15:06 PDT 2015


Author: ctopper
Date: Sun Mar 22 19:15:06 2015
New Revision: 232927

URL: http://llvm.org/viewvc/llvm-project?rev=232927&view=rev
Log:
[X86] Add one stepping of Broadwell to the CPU name autodetection for march=native.

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=232927&r1=232926&r2=232927&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Sun Mar 22 19:15:06 2015
@@ -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





More information about the llvm-commits mailing list