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

Issue 1122423003: [turbofan] Add support for advanced reducers. (Closed)

Created:
5 years, 7 months ago by Benedikt Meurer
Modified:
5 years, 7 months ago
Reviewers:
titzer
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Add support for advanced reducers. An AdvancedReducer is basically a regular Reducer with an editor that can perform graph editing operations beyond changing or replacing the node that is currently being reduced. The GraphReducer is the default implementation of the AdvancedReducer::Editor interface. The ControlReducerImpl is now just an AdvancedReducer, which temporarily requires a Finish method in the reducer to implement the dead node trimming until we move that to the GraphReducer (which in turn requires that all loops are connected to End). Committed: https://crrev.com/7b33409ba3fbb7853b854fea68d6a3dcbd387787 Cr-Commit-Position: refs/heads/master@{#28251}

Patch Set 1 #

Patch Set 2 : Make windows happy. #

Total comments: 2

Patch Set 3 : Address Ben's comments #

Total comments: 4

Patch Set 4 : Address next bunch of comments. #

Total comments: 2

Patch Set 5 : Move comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -426 lines) Patch
M src/compiler/control-reducer.h View 1 chunk +4 lines, -8 lines 0 comments Download
M src/compiler/control-reducer.cc View 1 2 10 chunks +94 lines, -198 lines 0 comments Download
M src/compiler/graph-reducer.h View 1 2 3 3 chunks +59 lines, -7 lines 0 comments Download
M src/compiler/graph-reducer.cc View 1 2 3 4 6 chunks +68 lines, -30 lines 0 comments Download
M src/compiler/node-marker.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/node-marker.cc View 1 2 chunks +10 lines, -2 lines 0 comments Download
M src/compiler/osr.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/pipeline.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M test/cctest/compiler/test-control-reducer.cc View 23 chunks +246 lines, -153 lines 0 comments Download
M test/unittests/compiler/control-reducer-unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
A test/unittests/compiler/graph-reducer-unittest.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M test/unittests/compiler/graph-reducer-unittest.cc View 1 2 15 chunks +84 lines, -21 lines 0 comments Download
M test/unittests/unittests.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
Benedikt Meurer
5 years, 7 months ago (2015-05-06 07:19:13 UTC) #2
titzer
https://codereview.chromium.org/1122423003/diff/20001/src/compiler/graph-reducer.h File src/compiler/graph-reducer.h (right): https://codereview.chromium.org/1122423003/diff/20001/src/compiler/graph-reducer.h#newcode45 src/compiler/graph-reducer.h:45: class Observer { As discussed, if we could move ...
5 years, 7 months ago (2015-05-06 08:57:40 UTC) #3
Benedikt Meurer
PTAL https://codereview.chromium.org/1122423003/diff/20001/src/compiler/graph-reducer.h File src/compiler/graph-reducer.h (right): https://codereview.chromium.org/1122423003/diff/20001/src/compiler/graph-reducer.h#newcode45 src/compiler/graph-reducer.h:45: class Observer { Done as discussed. However I ...
5 years, 7 months ago (2015-05-06 09:10:32 UTC) #4
titzer
https://codereview.chromium.org/1122423003/diff/40001/src/compiler/graph-reducer.cc File src/compiler/graph-reducer.cc (right): https://codereview.chromium.org/1122423003/diff/40001/src/compiler/graph-reducer.cc#newcode187 src/compiler/graph-reducer.cc:187: void GraphReducer::Replace(Node* node, Node* replacement) { I prefer the ...
5 years, 7 months ago (2015-05-06 09:22:08 UTC) #5
Benedikt Meurer
Done. https://codereview.chromium.org/1122423003/diff/40001/src/compiler/graph-reducer.cc File src/compiler/graph-reducer.cc (right): https://codereview.chromium.org/1122423003/diff/40001/src/compiler/graph-reducer.cc#newcode187 src/compiler/graph-reducer.cc:187: void GraphReducer::Replace(Node* node, Node* replacement) { On 2015/05/06 ...
5 years, 7 months ago (2015-05-06 09:33:30 UTC) #6
titzer
lgtm https://codereview.chromium.org/1122423003/diff/60001/src/compiler/graph-reducer.cc File src/compiler/graph-reducer.cc (right): https://codereview.chromium.org/1122423003/diff/60001/src/compiler/graph-reducer.cc#newcode163 src/compiler/graph-reducer.cc:163: // If {replacement} is an old node, unlink ...
5 years, 7 months ago (2015-05-06 09:38:44 UTC) #7
Benedikt Meurer
https://codereview.chromium.org/1122423003/diff/60001/src/compiler/graph-reducer.cc File src/compiler/graph-reducer.cc (right): https://codereview.chromium.org/1122423003/diff/60001/src/compiler/graph-reducer.cc#newcode163 src/compiler/graph-reducer.cc:163: // If {replacement} is an old node, unlink {node} ...
5 years, 7 months ago (2015-05-06 09:42:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1122423003/80001
5 years, 7 months ago (2015-05-06 09:43:06 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-06 10:12:52 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-05-06 10:13:03 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7b33409ba3fbb7853b854fea68d6a3dcbd387787
Cr-Commit-Position: refs/heads/master@{#28251}

Powered by Google App Engine
This is Rietveld 408576698