[llvm] r317185 - [X86] Remove the model checks from the 486 detection code in Host.cpp

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 20:32:50 PDT 2017


Author: ctopper
Date: Wed Nov  1 20:32:50 2017
New Revision: 317185

URL: http://llvm.org/viewvc/llvm-project?rev=317185&view=rev
Log:
[X86] Remove the model checks from the 486 detection code in Host.cpp

This just provided a bunch of comments to read and not much else.

Modified:
    llvm/trunk/lib/Support/Host.cpp

Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=317185&r1=317184&r2=317185&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Wed Nov  1 20:32:50 2017
@@ -587,20 +587,7 @@ getIntelProcessorTypeAndSubtype(unsigned
     *Type = INTEL_i386;
     break;
   case 4:
-    switch (Model) {
-    case 0: // Intel486 DX processors
-    case 1: // Intel486 DX processors
-    case 2: // Intel486 SX processors
-    case 3: // Intel487 processors, IntelDX2 OverDrive processors,
-            // IntelDX2 processors
-    case 4: // Intel486 SL processor
-    case 5: // IntelSX2 processors
-    case 7: // Write-Back Enhanced IntelDX2 processors
-    case 8: // IntelDX4 OverDrive processors, IntelDX4 processors
-    default:
-      *Type = INTEL_i486;
-      break;
-    }
+    *Type = INTEL_i486;
     break;
   case 5:
     if (Features & (1 << FEATURE_MMX)) {




More information about the llvm-commits mailing list