Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Issue 1846933002: [turbofan] Handle dead diamonds in scheduling and add a test. (Closed)

Created:
4 years, 8 months ago by titzer
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -3 lines) Patch
M src/compiler/scheduler.cc View 1 2 chunks +4 lines, -1 line 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M test/unittests/compiler/scheduler-unittest.cc View 1 2 2 chunks +47 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
titzer
4 years, 8 months ago (2016-03-31 11:58:02 UTC) #1
titzer
On 2016/03/31 11:58:02, titzer wrote: ping
4 years, 8 months ago (2016-04-04 16:22:01 UTC) #3
Michael Starzinger
LGTM with one comment to address. https://codereview.chromium.org/1846933002/diff/1/src/compiler/scheduler.cc File src/compiler/scheduler.cc (left): https://codereview.chromium.org/1846933002/diff/1/src/compiler/scheduler.cc#oldcode1548 src/compiler/scheduler.cc:1548: DCHECK_EQ(edge.to(), NodeProperties::GetControlInput(use)); After ...
4 years, 8 months ago (2016-04-04 17:07:43 UTC) #4
Michael Starzinger
+Jaro: FYI. As we discussed offline.
4 years, 8 months ago (2016-04-04 17:09:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846933002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846933002/40001
4 years, 8 months ago (2016-04-04 17:17:25 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-04 17:44:38 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 17:46:10 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/45d75bca5c13f52850d9ac10ea58dae38fd0f1d7
Cr-Commit-Position: refs/heads/master@{#35245}

Powered by Google App Engine
This is Rietveld 408576698