mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-21 03:05:15 +00:00
[cpu-detection] Return amdfam10 for all subtypes. Address Bug 28067.
Summary: Remove architecture subtype from the string returned by getHostCPUName(). String matching done on type. Reviewers: llvm-commits, echristo Subscribers: mehdi_amini Differential Revision: http://reviews.llvm.org/D21193 llvm-svn: 272328
This commit is contained in:
parent
0158e53ab5
commit
d5696c2256
@ -869,16 +869,7 @@ StringRef sys::getHostCPUName() {
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user