summaryrefslogtreecommitdiffstats
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
commit11b788d5be0da3d405a2bf3488d57de5935e1607 (patch)
tree6ffb17cac7cdd9b42ea416bab2d6f1f7268b0065
parent3f955e6d89c3c20dfe609cb20ee730132909cba4 (diff)
downloadbcm5719-llvm-11b788d5be0da3d405a2bf3488d57de5935e1607.tar.gz
bcm5719-llvm-11b788d5be0da3d405a2bf3488d57de5935e1607.zip
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. llvm-svn: 136836
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 4c130d0026b..87b12c687ef 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud