[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:
Alina Sbirlea 2016-06-09 22:47:12 +00:00
parent 0158e53ab5
commit d5696c2256

View File

@ -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: