[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Oct 1 14:41:03 PDT 2003
Changes in directory llvm/lib/Target/X86:
X86TargetMachine.cpp updated: 1.26 -> 1.27
---
Log message:
Revert previous change. For some reason this went into the main branch
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.26 llvm/lib/Target/X86/X86TargetMachine.cpp:1.27
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.26 Wed Oct 1 14:38:10 2003
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Wed Oct 1 14:40:13 2003
@@ -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 @@
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());
More information about the llvm-commits
mailing list