mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Added an option to have the PBQP allocator attempt coalescing during allocation.
llvm-svn: 79397
This commit is contained in:
parent
bd652bf082
commit
c26fb5727a
@ -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