• bmeurer's avatar
    [turbofan] Optimize certain chains of Branch into a Switch. · acd9c46c
    bmeurer authored
    This adds a new ControlFlowOptimizer that - for now - recognizes chains
    of Branches generated by the SwitchBuilder for a subset of javascript
    switches into Switch nodes. Those Switch nodes are then lowered to
    either table or lookup switches.
    
    Also rename Case to IfValue (and introduce IfDefault) for consistency.
    
    BUG=v8:3872
    LOG=n
    
    Review URL: https://codereview.chromium.org/931623002
    
    Cr-Commit-Position: refs/heads/master@{#26691}
    acd9c46c
instruction-selector-arm.cc 48 KB