mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Added an option to have the PBQP allocator attempt coalescing during allocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
021d664a38
commit
8481e3b368
@ -59,6 +59,11 @@ static RegisterRegAlloc
|
||||
registerPBQPRepAlloc("pbqp", "PBQP register allocator.",
|
||||
llvm::createPBQPRegisterAllocator);
|
||||
|
||||
static cl::opt<bool>
|
||||
pbqpCoalescing("pbqp-coalescing",
|
||||
cl::desc("Attempt coalescing during PBQP register allocation."),
|
||||
cl::init(false), cl::Hidden);
|
||||
|
||||
namespace {
|
||||
|
||||
///
|
||||
@ -537,7 +542,11 @@ PBQP::SimpleGraph PBQPRegAlloc::constructPBQPProblem() {
|
||||
}
|
||||
|
||||
// Get the set of potential coalesces.
|
||||
CoalesceMap coalesces;//(findCoalesces());
|
||||
CoalesceMap coalesces;
|
||||
|
||||
if (pbqpCoalescing) {
|
||||
coalesces = findCoalesces();
|
||||
}
|
||||
|
||||
// Construct a PBQP solver for this problem
|
||||
PBQP::SimpleGraph problem;
|
||||
|
Loading…
Reference in New Issue
Block a user