[PATCH] D21193: [cpu-detection] Return amdfam10 for all subtypes. Address Bug 28067.
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 11:41:16 PDT 2016
asbirlea created this revision.
asbirlea added reviewers: llvm-commits, echristo.
Herald added a subscriber: mehdi_amini.
Remove architecture subtype from the string returned by getHostCPUName(). String matching done on type.
http://reviews.llvm.org/D21193
Files:
lib/Support/Host.cpp
Index: lib/Support/Host.cpp
===================================================================
--- lib/Support/Host.cpp
+++ lib/Support/Host.cpp
@@ -869,16 +869,7 @@
return "athlon";
}
case AMDFAM10H:
- switch (Subtype) {
- case AMDFAM10H_BARCELONA:
- return "amdfam10-barcelona";
- case AMDFAM10H_SHANGHAI:
- return "amdfam10-shanghai";
- case AMDFAM10H_ISTANBUL:
- return "amdfam10-istanbul";
- default:
return "amdfam10";
- }
case AMDFAM14H:
return "btver1";
case AMDFAM15H:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21193.60218.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160609/c2f26647/attachment.bin>
More information about the llvm-commits
mailing list