[PATCH] D21158: [cpu-detection] Add missing break statements in outer switches
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 17:15:04 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL272228: [cpu-detection] Add missing break statements in outer switches (authored by asbirlea).
Changed prior to commit:
http://reviews.llvm.org/D21158?vs=60119&id=60122#toc
Repository:
rL LLVM
http://reviews.llvm.org/D21158
Files:
llvm/trunk/lib/Support/Host.cpp
Index: llvm/trunk/lib/Support/Host.cpp
===================================================================
--- llvm/trunk/lib/Support/Host.cpp
+++ llvm/trunk/lib/Support/Host.cpp
@@ -320,6 +320,7 @@
*Type = INTEL_i486;
break;
}
+ break;
case 5:
switch (Model) {
case 1: // Pentium OverDrive processor for Pentium processor (60, 66),
@@ -341,6 +342,7 @@
*Type = INTEL_PENTIUM;
break;
}
+ break;
case 6:
switch (Model) {
case 0x01: // Pentium Pro processor
@@ -537,6 +539,7 @@
*Type = INTEL_PENTIUM_PRO;
break;
}
+ break;
case 15: {
switch (Model) {
case 0: // Pentium 4 processor, Intel Xeon processor. All processors are
@@ -572,6 +575,7 @@
((Features & (1 << FEATURE_EM64T)) ? INTEL_X86_64 : INTEL_PENTIUM_IV);
break;
}
+ break;
}
default:
break; /*"generic"*/
@@ -589,6 +593,7 @@
switch (Family) {
case 4:
*Type = AMD_i486;
+ break;
case 5:
*Type = AMDPENTIUM;
switch (Model) {
@@ -606,9 +611,8 @@
case 10:
*Subtype = AMDPENTIUM_GEODE;
break; // "geode"
- default:
- break;
}
+ break;
case 6:
*Type = AMDATHLON;
switch (Model) {
@@ -623,9 +627,8 @@
case 10:
*Subtype = AMDATHLON_XP;
break; // "athlon-xp"
- default:
- break;
}
+ break;
case 15:
*Type = AMDATHLON;
if (Features & (1 << FEATURE_SSE3)) {
@@ -643,6 +646,7 @@
*Subtype = AMDATHLON_64;
break; // "athlon64"
}
+ break;
case 16:
*Type = AMDFAM10H; // "amdfam10"
switch (Model) {
@@ -655,9 +659,8 @@
case 8:
*Subtype = AMDFAM10H_ISTANBUL;
break;
- default:
- break;
}
+ break;
case 20:
*Type = AMDFAM14H;
*Subtype = AMD_BTVER1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21158.60122.patch
Type: text/x-patch
Size: 1836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160609/26957b5a/attachment.bin>
More information about the llvm-commits
mailing list