• bmeurer's avatar
    [turbofan] Ensure that NTLs are always properly connected to the end. · 59a02ebd
    bmeurer authored
    Up until now we used a special Terminate node to artifically connect non
    terminating loops to the End node, but this was kind of adhoc and didn't
    work for the CFG. So without all kinds of weird hacks, the end block in
    the CFG will not be connected to NTLs, which makes it impossible to
    compute post dominance / control dependence in the current setting.
    
    So instead of Terminate, we add a special Branch to NTLs, whose
    condition is the special Always node, which corresponds to True, except
    that it cannot be folded away. This way we don't need any special
    machinery in the scheduler, since it's just a regular Branch.
    
    R=titzer@chromium.org
    
    Review URL: https://codereview.chromium.org/875263004
    
    Cr-Commit-Position: refs/heads/master@{#26294}
    59a02ebd
unittests.gyp 5.69 KB