aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-17 02:51:15 +0000
committerChris Lattner <sabre@nondot.org>2002-12-17 02:51:15 +0000
commit14322cd3375c675309c14b7a2f95aef22c5eae25 (patch)
tree2edebc996125fefeecdd89655ddfb650e6be6c41 /lib/Target/X86/X86TargetMachine.cpp
parentae6404373715c776b50ee11dc91d5a008ddb9a64 (diff)
Local register allocator is now stable enough for use, it passes all tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5094 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index cdb7dea415..0eb71da814 100644
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -15,8 +15,8 @@
#include <iostream>
namespace {
- cl::opt<bool> UseLocalRA("local-ra",
- cl::desc("Use Local RegAlloc instead of Simple RA"));
+ cl::opt<bool> NoLocalRA("no-local-ra",
+ cl::desc("Use Simple RA instead of Local RegAlloc"));
}
// allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
@@ -49,10 +49,10 @@ bool X86TargetMachine::addPassesToJITCompile(PassManager &PM) {
DEBUG(PM.add(createMachineFunctionPrinterPass()));
// Perform register allocation to convert to a concrete x86 representation
- if (UseLocalRA)
- PM.add(createLocalRegisterAllocator(*this));
- else
+ if (NoLocalRA)
PM.add(createSimpleRegisterAllocator(*this));
+ else
+ PM.add(createLocalRegisterAllocator(*this));
// Print the instruction selected machine code...
// PM.add(createMachineFunctionPrinterPass());