• Leszek Swirski's avatar
    [maglev] Don't allocate dead phis · ef1dfcad
    Leszek Swirski authored
    Avoid allocating dead (zero live range) phis, or their inputs. We should
    figure out a way to remove them from the graph entirely, e.g. in a
    separate DCE phase, but for now the easiest thing to do is to skip over
    them.
    
    Note that we can't eliminate them as part of the current node processing
    pass, since that's the thing that records live ranges in the first
    place.
    
    Bug: v8:7700
    Change-Id: I3e7f1f2214100def9ccc2b3f008852d5d69f548f
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3784985Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#81954}
    ef1dfcad
maglev-regalloc.cc 58.7 KB