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

Issue 656123005: Implement loop variable assignment analysis. (Closed)

Created:
6 years, 1 month ago by titzer
Modified:
6 years, 1 month ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Implement loop variable assignment analysis. This analysis computes the set of variables that are assigned in each loop. This is useful to avoid creating redundant loop phis when building an SSA graph, which just waste memory and require analysis to get rid of. This CL implements an AST walk for the analysis and plugs the result into the TurboFan graph builder. I left this analysis under a flag for A/B testing and until sufficient unit tests can be developed. R=danno@chromium.org, mstarzinger@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=24957

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+732 lines, -17 lines) Patch
M src/compiler/ast-graph-builder.h View 3 chunks +6 lines, -1 line 0 comments Download
M src/compiler/ast-graph-builder.cc View 1 7 chunks +21 lines, -6 lines 0 comments Download
A src/compiler/ast-loop-assignment-analyzer.h View 1 1 chunk +78 lines, -0 lines 0 comments Download
A src/compiler/ast-loop-assignment-analyzer.cc View 1 1 chunk +305 lines, -0 lines 0 comments Download
M src/compiler/control-builders.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/control-builders.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/graph-builder.h View 1 3 chunks +6 lines, -3 lines 0 comments Download
M src/compiler/graph-builder.cc View 1 1 chunk +15 lines, -4 lines 0 comments Download
M src/flag-definitions.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
A test/cctest/compiler/test-loop-assignment-analysis.cc View 1 1 chunk +294 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
titzer
6 years, 1 month ago (2014-10-27 09:06:59 UTC) #1
titzer
On 2014/10/27 09:06:59, titzer wrote: Added unit tests, PTAL.
6 years, 1 month ago (2014-10-28 13:58:58 UTC) #2
danno
lgtm https://codereview.chromium.org/656123005/diff/1/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/656123005/diff/1/src/compiler/ast-graph-builder.cc#newcode592 src/compiler/ast-graph-builder.cc:592: if (loop_assignment_analysis_ == NULL) return NULL; This seems ...
6 years, 1 month ago (2014-10-28 14:23:29 UTC) #3
titzer
https://codereview.chromium.org/656123005/diff/1/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/656123005/diff/1/src/compiler/ast-graph-builder.cc#newcode592 src/compiler/ast-graph-builder.cc:592: if (loop_assignment_analysis_ == NULL) return NULL; On 2014/10/28 14:23:29, ...
6 years, 1 month ago (2014-10-28 17:16:03 UTC) #4
titzer
6 years, 1 month ago (2014-10-28 17:29:58 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 manually as 24957 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698