summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2003-10-01 19:40:13 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2003-10-01 19:40:13 +0000
commit77e78d050af5c764a6d7fe77adb71842dc2e99d3 (patch)
tree3e3d173b0d0e57d889cf2e9c6e0e3e31ee844b1e
parent6ac2c8c6731fdebd9373aa9e0faa21df38dc6cfe (diff)
downloadllvm-77e78d050af5c764a6d7fe77adb71842dc2e99d3.tar.gz
llvm-77e78d050af5c764a6d7fe77adb71842dc2e99d3.tar.bz2
llvm-77e78d050af5c764a6d7fe77adb71842dc2e99d3.tar.xz
Revert previous change. For some reason this went into the main branch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8805 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index e58ac31c7f..60f8bbca19 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -16,14 +16,6 @@
#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());