• mtrofin's avatar
    [turbofan] Greedy: smarter last resort splitting. · d5a9dd65
    mtrofin authored
    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}
    d5a9dd65
greedy-allocator.h 7.01 KB