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

Issue 1368913002: [turbofan] Check node input/use consistency for changed operators and new nodes. (Closed)

Created:
5 years, 3 months ago by Jarin
Modified:
5 years, 3 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] Check node input/use consistency for changed operators and new nodes. Verifies consistency of node inputs and uses: - node inputs should agree with the input count computed from the node's operator. - effect inputs should have effect outputs (or be a sentinel). - control inputs should have control outputs (or be a sentinel). - frame state inputs should be frame states (or be a sentinel). - if the node has control uses, it should produce control. - if the node has effect uses, it should produce effect. - if the node has frame state uses, it must be a frame state. I also removed some tests, either because they did not seem to be useful (scheduler) or they tested dead functionality (diamond effect phi). Committed: https://crrev.com/1c2867c0dac589300817f430bf13a84eba4e8c07 Cr-Commit-Position: refs/heads/master@{#30927}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Test tweak #

Total comments: 2

Patch Set 4 : Resurrect the control equivalence test. #

Total comments: 2

Patch Set 5 : Tweak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -90 lines) Patch
M src/compiler/diamond.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M src/compiler/graph.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 4 chunks +3 lines, -3 lines 0 comments Download
M src/compiler/node-properties.h View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M src/compiler/node-properties.cc View 1 2 3 4 2 chunks +49 lines, -1 line 0 comments Download
M src/compiler/select-lowering.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-loop-analysis.cc View 4 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/compiler/test-machine-operator-reducer.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-osr.cc View 3 chunks +10 lines, -16 lines 0 comments Download
M test/unittests/compiler/control-equivalence-unittest.cc View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M test/unittests/compiler/diamond-unittest.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M test/unittests/compiler/loop-peeling-unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/scheduler-unittest.cc View 2 chunks +1 line, -26 lines 0 comments Download
M test/unittests/compiler/value-numbering-reducer-unittest.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Jarin
Could you take a look, please? Michi, could you help me with fixing the control ...
5 years, 3 months ago (2015-09-25 07:38:57 UTC) #2
Michael Starzinger
https://codereview.chromium.org/1368913002/diff/40001/test/unittests/compiler/control-equivalence-unittest.cc File test/unittests/compiler/control-equivalence-unittest.cc (left): https://codereview.chromium.org/1368913002/diff/40001/test/unittests/compiler/control-equivalence-unittest.cc#oldcode110 test/unittests/compiler/control-equivalence-unittest.cc:110: Node* end = End(start); Removing this is fine with ...
5 years, 3 months ago (2015-09-25 08:06:49 UTC) #3
Jarin
Resurrected the test, as you suggested. https://codereview.chromium.org/1368913002/diff/40001/test/unittests/compiler/control-equivalence-unittest.cc File test/unittests/compiler/control-equivalence-unittest.cc (left): https://codereview.chromium.org/1368913002/diff/40001/test/unittests/compiler/control-equivalence-unittest.cc#oldcode110 test/unittests/compiler/control-equivalence-unittest.cc:110: Node* end = ...
5 years, 3 months ago (2015-09-25 08:13:33 UTC) #4
Michael Starzinger
LGTM from my end, just a nit. https://codereview.chromium.org/1368913002/diff/60001/src/compiler/node-properties.h File src/compiler/node-properties.h (right): https://codereview.chromium.org/1368913002/diff/60001/src/compiler/node-properties.h#newcode110 src/compiler/node-properties.h:110: static void ...
5 years, 3 months ago (2015-09-25 08:16:45 UTC) #5
Jarin
Good catch, moved now. https://codereview.chromium.org/1368913002/diff/60001/src/compiler/node-properties.h File src/compiler/node-properties.h (right): https://codereview.chromium.org/1368913002/diff/60001/src/compiler/node-properties.h#newcode110 src/compiler/node-properties.h:110: static void Verify(Node* node); On ...
5 years, 3 months ago (2015-09-25 08:20:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368913002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368913002/80001
5 years, 3 months ago (2015-09-25 08:26:03 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-25 08:42:58 UTC) #10
commit-bot: I haz the power
5 years, 3 months ago (2015-09-25 08:43:20 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1c2867c0dac589300817f430bf13a84eba4e8c07
Cr-Commit-Position: refs/heads/master@{#30927}

Powered by Google App Engine
This is Rietveld 408576698