[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alina Sbirlea 2016-06-09 22:47:12 +00:00
parent 22f7a63da6
commit 539e7710fb

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: