• titzer's avatar
    [turbofan] Handle dead diamonds in scheduling and add a test. · 45d75bca
    titzer authored
    The background here is that graphs generated from WASM are not trimmed.
    That means there can be some floating control diamonds that are not
    reachable from end. An assertion in the scheduler for phis from floating
    diamonds checks that the use edge in this situation is the control edge,
    but in general, any edge could cause this.
    
    Scheduling still works without this assertion. The longer term fix
    is to either trim the graphs (more compile time overhead for WASM)
    or improve the scheduler's handling of dead code in the graph. Currently
    it does not schedule dead code but the potential use positions of
    dead code are used in the computation of the common dominator of uses. We could
    recognize dead nodes in PrepareUses() and check in GetBlockForUse()
    as per TODO.
    
    R=bradnelson@chromium.org, mstarzinger@chromium.org
    BUG=
    
    Review URL: https://codereview.chromium.org/1846933002
    
    Cr-Commit-Position: refs/heads/master@{#35245}
    45d75bca
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
docs Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...