Revert previous change. For some reason this went into the main branch
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Wed, 1 Oct 2003 19:40:13 +0000 (19:40 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Wed, 1 Oct 2003 19:40:13 +0000 (19:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8805 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp

index e58ac31c7f2350a73849feaf031c951bcb614d06..60f8bbca19b87b4021cd8bd82d69a787dc6861b3 100644 (file)
 #include "Support/Statistic.h"
 
 namespace {
-  cl::opt<RegAllocName>
-  RegAlloc("regalloc",
-           cl::desc("Register allocator to use:"), cl::Prefix,
-           cl::values(clEnumVal(simple, "simple register allocator)"),
-                      clEnumVal(local, "local register allocator"),
-                      clEnumVal(linearscan, "linear scan global register allocator")),
-           cl::init(local));
-
   cl::opt<bool> NoLocalRA("disable-local-ra",
                           cl::desc("Use Simple RA instead of Local RegAlloc"));
   cl::opt<bool> PrintCode("print-machineinstrs",
@@ -121,19 +113,10 @@ bool X86TargetMachine::addPassesToJITCompile(FunctionPassManager &PM) {
     PM.add(createMachineFunctionPrinterPass());
 
   // Perform register allocation to convert to a concrete x86 representation
-  switch (RegAlloc) {
-  case simple:
+  if (NoLocalRA)
     PM.add(createSimpleRegisterAllocator());
-    break;
-  case local:
+  else
     PM.add(createLocalRegisterAllocator());
-    break;
-  case linearscan:
-    PM.add(createLinearScanRegisterAllocator());
-    break;
-  default:
-    assert(0 && "no register allocator selected");
-  }
 
   if (PrintCode)
     PM.add(createMachineFunctionPrinterPass());