summaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-29 22:10:27 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-29 22:10:27 +0000
commit9162abb39f13146c0dea159e92ac291e4ea900bf (patch)
treeb7592e21524465c49fd3f9716106c9cadbc8a4bb /lib/CodeGen/RegAllocGreedy.cpp
parentef7f1e71f722fcca863c7d354f408e72181ff891 (diff)
downloadllvm-9162abb39f13146c0dea159e92ac291e4ea900bf.tar.gz
llvm-9162abb39f13146c0dea159e92ac291e4ea900bf.tar.bz2
llvm-9162abb39f13146c0dea159e92ac291e4ea900bf.tar.xz
Enable compact region splitting by default.
This helps generate better code in functions with high register pressure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136528 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 239c8e4359..9bc2651870 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);