mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
Local register allocator is now stable enough for use, it passes all tests
llvm-svn: 5094
This commit is contained in:
parent
8dd15fd26c
commit
305d72e965
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user