[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Dec 16 20:52:01 PST 2002
Changes in directory llvm/lib/Target/X86:
X86TargetMachine.cpp updated: 1.7 -> 1.8
---
Log message:
Local register allocator is now stable enough for use, it passes all tests
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.7 llvm/lib/Target/X86/X86TargetMachine.cpp:1.8
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.7 Mon Dec 16 10:15:51 2002
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Mon Dec 16 20:51:15 2002
@@ -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 @@
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());
More information about the llvm-commits
mailing list