[PATCH] D70279: [X86] Add AMD Matisse (znver2) model number to getHostCPUName
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 12:03:37 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGff75bf6ac93a: [X86] Add AMD Matisse (znver2) model number to getHostCPUName and compiler-rt's… (authored by craig.topper).
Changed prior to commit:
https://reviews.llvm.org/D70279?vs=229874&id=229895#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70279/new/
https://reviews.llvm.org/D70279
Files:
compiler-rt/lib/builtins/cpu_model.c
llvm/lib/Support/Host.cpp
Index: llvm/lib/Support/Host.cpp
===================================================================
--- llvm/lib/Support/Host.cpp
+++ llvm/lib/Support/Host.cpp
@@ -959,9 +959,9 @@
break; // "btver2"
case 23:
*Type = X86::AMDFAM17H;
- if (Model >= 0x30 && Model <= 0x3f) {
+ if ((Model >= 0x30 && Model <= 0x3f) || Model == 0x71) {
*Subtype = X86::AMDFAM17H_ZNVER2;
- break; // "znver2"; 30h-3fh: Zen2
+ break; // "znver2"; 30h-3fh, 71h: Zen2
}
if (Model <= 0x0f) {
*Subtype = X86::AMDFAM17H_ZNVER1;
Index: compiler-rt/lib/builtins/cpu_model.c
===================================================================
--- compiler-rt/lib/builtins/cpu_model.c
+++ compiler-rt/lib/builtins/cpu_model.c
@@ -471,9 +471,9 @@
break; // "btver2"
case 23:
*Type = AMDFAM17H;
- if (Model >= 0x30 && Model <= 0x3f) {
+ if ((Model >= 0x30 && Model <= 0x3f) || Model == 0x71) {
*Subtype = AMDFAM17H_ZNVER2;
- break; // "znver2"; 30h-3fh: Zen2
+ break; // "znver2"; 30h-3fh, 71h: Zen2
}
if (Model <= 0x0f) {
*Subtype = AMDFAM17H_ZNVER1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70279.229895.patch
Type: text/x-patch
Size: 1124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191118/b12ab4c1/attachment.bin>
More information about the llvm-commits
mailing list