[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 09:31:57 PDT 2018


lebedev.ri updated this revision to Diff 144737.
lebedev.ri retitled this revision from "[X86][AMD][Bulldozer] Unbreak Bulldozer sub-type detection." to "[X86][AMD][Bulldozer] Fix Bulldozer Model 2 detection.".
lebedev.ri edited the summary of this revision.

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,7 +840,7 @@
       *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
     }


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


More information about the llvm-commits mailing list