[turbofan] Greedy: smarter last resort splitting.
authormtrofin <mtrofin@chromium.org>
Tue, 29 Sep 2015 03:46:53 +0000 (20:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 29 Sep 2015 03:47:35 +0000 (03:47 +0000)
commitd5a9dd6539d49f0fc7bd2d48f4783520a9e3b88d
tree141c7d4a734b22f5fc8333eb71ac3ca63804d168
parent5a13102df90df4e4d2d0117e9d865e1f78391ded
[turbofan] Greedy: smarter last resort splitting.

When all heuristics fail, we run a "last resort" heuristic. Before, it was
splitting at the first found splittable position either before or after a
use position. That turns out to be too naive: it may split in loops, when
alternative split positions exist outside loops.

This change chooses a "before" use case location that is outside the
loop.

Review URL: https://codereview.chromium.org/1372213005

Cr-Commit-Position: refs/heads/master@{#30990}
src/compiler/greedy-allocator.cc
src/compiler/greedy-allocator.h