diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-12-17 02:51:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-12-17 02:51:15 +0000 |
| commit | d9c6f2a6d3209b83dd507c617d0f70a01db4e96e (patch) | |
| tree | a03da0bd14c7704891822715608a05b011c41545 /llvm | |
| parent | 4664bd5798c858bcb82b86106004e14a2074effa (diff) | |
| download | bcm5719-llvm-d9c6f2a6d3209b83dd507c617d0f70a01db4e96e.tar.gz bcm5719-llvm-d9c6f2a6d3209b83dd507c617d0f70a01db4e96e.zip | |
Local register allocator is now stable enough for use, it passes all tests
llvm-svn: 5094
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/X86/X86TargetMachine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp index cdb7dea4155..0eb71da814a 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.cpp +++ b/llvm/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()); |

