summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-03 23:16:09 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-08-03 23:16:09 +0000
commita92afc18a8ff72b905902d75a2a4920d5438ca0c (patch)
treeb7ca8ed99fa27926c51a8f928d547da47ddc276f /lib/CodeGen/RegAllocGreedy.cpp
parent5787124820f9f544216675c020ff0b33e090d181 (diff)
downloadllvm-a92afc18a8ff72b905902d75a2a4920d5438ca0c.tar.gz
llvm-a92afc18a8ff72b905902d75a2a4920d5438ca0c.tar.bz2
llvm-a92afc18a8ff72b905902d75a2a4920d5438ca0c.tar.xz
Enable compact region splitting by default.
This helps generate better code in functions with high register pressure. The previous version of compact region splitting caused regressions because the regions were a bit too large. A stronger negative bias applied in r136832 fixed this problem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index 4c130d0026..87b12c687e 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -52,7 +52,7 @@ STATISTIC(NumGlobalSplits, "Number of split global live ranges");
STATISTIC(NumLocalSplits, "Number of split local live ranges");
STATISTIC(NumEvicted, "Number of interferences evicted");
-cl::opt<bool> CompactRegions("compact-regions");
+cl::opt<bool> CompactRegions("compact-regions", cl::init(true));
static RegisterRegAlloc greedyRegAlloc("greedy", "greedy register allocator",
createGreedyRegisterAllocator);