Skip to content

Commit

Permalink
Enable compact region splitting by default.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stoklund committed Aug 3, 2011
1 parent 5787124 commit a92afc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CodeGen/RegAllocGreedy.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit a92afc1

Please sign in to comment.