Skip to content

Commit

Permalink
[cpu-detection] Return amdfam10 for all subtypes. Address Bug 28067.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alinas committed Jun 9, 2016
1 parent 22f7a63 commit 539e771
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/Support/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 539e771

Please sign in to comment.