Always compare the cost of region splitting with the cost of per-block splitting.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 22 Apr 2011 22:47:40 +0000 (22:47 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 22 Apr 2011 22:47:40 +0000 (22:47 +0000)
commit200729882a47535d4c2496283d26600171531fad
tree5f83ba14ba834e02305e8ebb6e9c6e658252581a
parent3335a99fe8d18f6c47d910253dff099be05ac985
Always compare the cost of region splitting with the cost of per-block splitting.

Sometimes it is better to split per block, and we missed those cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130025 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegAllocGreedy.cpp