[PATCH] D46314: [X86][AMD][Bulldozer] Fix Bulldozer Model 2 detection.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 1 10:55:59 PDT 2018


lebedev.ri updated this revision to Diff 144750.
lebedev.ri added a comment.

Update comment, too.


Repository:
  rL LLVM

https://reviews.llvm.org/D46314

Files:
  lib/Support/Host.cpp


Index: lib/Support/Host.cpp
===================================================================
--- lib/Support/Host.cpp
+++ lib/Support/Host.cpp
@@ -840,9 +840,9 @@
       *Subtype = X86::AMDFAM15H_BDVER3;
       break; // "bdver3"; 30h-3Fh: Steamroller
     }
-    if (Model >= 0x10 && Model <= 0x1f) {
+    if ((Model >= 0x10 && Model <= 0x1f) || Model == 0x02) {
       *Subtype = X86::AMDFAM15H_BDVER2;
-      break; // "bdver2"; 10h-1Fh: Piledriver
+      break; // "bdver2"; 02h, 10h-1Fh: Piledriver
     }
     if (Model <= 0x0f) {
       *Subtype = X86::AMDFAM15H_BDVER1;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46314.144750.patch
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180501/a791c621/attachment.bin>


More information about the llvm-commits mailing list