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

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 1 11:44:00 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331294: [X86][AMD][Bulldozer] Fix Bulldozer Model 2 detection. (authored by lebedevri, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D46314?vs=144750&id=144761#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46314

Files:
  llvm/trunk/lib/Support/Host.cpp


Index: llvm/trunk/lib/Support/Host.cpp
===================================================================
--- llvm/trunk/lib/Support/Host.cpp
+++ llvm/trunk/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.144761.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180501/240ccb0a/attachment.bin>


More information about the llvm-commits mailing list