mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
Revert previous change. For some reason this went into the main branch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,14 +16,6 @@
|
|||||||
#include "Support/Statistic.h"
|
#include "Support/Statistic.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
cl::opt<RegAllocName>
|
|
||||||
RegAlloc("regalloc",
|
|
||||||
cl::desc("Register allocator to use:"), cl::Prefix,
|
|
||||||
cl::values(clEnumVal(simple, "simple register allocator)"),
|
|
||||||
clEnumVal(local, "local register allocator"),
|
|
||||||
clEnumVal(linearscan, "linear scan global register allocator")),
|
|
||||||
cl::init(local));
|
|
||||||
|
|
||||||
cl::opt<bool> NoLocalRA("disable-local-ra",
|
cl::opt<bool> NoLocalRA("disable-local-ra",
|
||||||
cl::desc("Use Simple RA instead of Local RegAlloc"));
|
cl::desc("Use Simple RA instead of Local RegAlloc"));
|
||||||
cl::opt<bool> PrintCode("print-machineinstrs",
|
cl::opt<bool> PrintCode("print-machineinstrs",
|
||||||
@@ -121,19 +113,10 @@ bool X86TargetMachine::addPassesToJITCompile(FunctionPassManager &PM) {
|
|||||||
PM.add(createMachineFunctionPrinterPass());
|
PM.add(createMachineFunctionPrinterPass());
|
||||||
|
|
||||||
// Perform register allocation to convert to a concrete x86 representation
|
// Perform register allocation to convert to a concrete x86 representation
|
||||||
switch (RegAlloc) {
|
if (NoLocalRA)
|
||||||
case simple:
|
|
||||||
PM.add(createSimpleRegisterAllocator());
|
PM.add(createSimpleRegisterAllocator());
|
||||||
break;
|
else
|
||||||
case local:
|
|
||||||
PM.add(createLocalRegisterAllocator());
|
PM.add(createLocalRegisterAllocator());
|
||||||
break;
|
|
||||||
case linearscan:
|
|
||||||
PM.add(createLinearScanRegisterAllocator());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
assert(0 && "no register allocator selected");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (PrintCode)
|
if (PrintCode)
|
||||||
PM.add(createMachineFunctionPrinterPass());
|
PM.add(createMachineFunctionPrinterPass());
|
||||||
|
Reference in New Issue
Block a user