Description[turbofan] Handle dead diamonds in scheduling and add a test.
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=
Committed: https://crrev.com/45d75bca5c13f52850d9ac10ea58dae38fd0f1d7
Cr-Commit-Position: refs/heads/master@{#35245}
Patch Set 1 #
Total comments: 1
Patch Set 2 : #Patch Set 3 : #
Messages
Total messages: 13 (6 generated)
|