diff options
author | Lang Hames <lhames@gmail.com> | 2009-08-19 01:36:14 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2009-08-19 01:36:14 +0000 |
commit | 11732add1e904c55fd1f1e6460593711d8575ae3 (patch) | |
tree | 0738665672110a2784471d9dadde563ff6d5dbff /llvm/lib/CodeGen | |
parent | 560ac97bf38ea1834df4929a2c9823c69a34cedd (diff) | |
download | bcm5719-llvm-11732add1e904c55fd1f1e6460593711d8575ae3.tar.gz bcm5719-llvm-11732add1e904c55fd1f1e6460593711d8575ae3.zip |
Added an option to have the PBQP allocator attempt coalescing during allocation.
llvm-svn: 79397
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocPBQP.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp index 3da25533772..227ce391e54 100644 --- a/llvm/lib/CodeGen/RegAllocPBQP.cpp +++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp @@ -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; |