From 305d72e965ff838e64cc365a00cc3bf0c4c16877 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Dec 2002 02:51:15 +0000 Subject: [PATCH] Local register allocator is now stable enough for use, it passes all tests llvm-svn: 5094 --- lib/Target/X86/X86TargetMachine.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index cdb7dea4155..0eb71da814a 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -15,8 +15,8 @@ #include namespace { - cl::opt UseLocalRA("local-ra", - cl::desc("Use Local RegAlloc instead of Simple RA")); + cl::opt 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());