mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
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
This commit is contained in:
parent
ae64043737
commit
14322cd337
@ -15,8 +15,8 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
cl::opt<bool> UseLocalRA("local-ra",
|
cl::opt<bool> NoLocalRA("no-local-ra",
|
||||||
cl::desc("Use Local RegAlloc instead of Simple RA"));
|
cl::desc("Use Simple RA instead of Local RegAlloc"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
|
// allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
|
||||||
@ -49,10 +49,10 @@ bool X86TargetMachine::addPassesToJITCompile(PassManager &PM) {
|
|||||||
DEBUG(PM.add(createMachineFunctionPrinterPass()));
|
DEBUG(PM.add(createMachineFunctionPrinterPass()));
|
||||||
|
|
||||||
// Perform register allocation to convert to a concrete x86 representation
|
// Perform register allocation to convert to a concrete x86 representation
|
||||||
if (UseLocalRA)
|
if (NoLocalRA)
|
||||||
PM.add(createLocalRegisterAllocator(*this));
|
|
||||||
else
|
|
||||||
PM.add(createSimpleRegisterAllocator(*this));
|
PM.add(createSimpleRegisterAllocator(*this));
|
||||||
|
else
|
||||||
|
PM.add(createLocalRegisterAllocator(*this));
|
||||||
|
|
||||||
// Print the instruction selected machine code...
|
// Print the instruction selected machine code...
|
||||||
// PM.add(createMachineFunctionPrinterPass());
|
// PM.add(createMachineFunctionPrinterPass());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user