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

Issue 864293004: Add a shrinking reduction for dead continuation parameters. (Closed)

Created:
5 years, 11 months ago by Kevin Millikin (Google)
Modified:
5 years, 11 months ago
Reviewers:
asgerf
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Add a shrinking reduction for dead continuation parameters. Continuation parameters that have no uses can be eliminated. This is similar to the reduction for dead values except that that continuation invocations need to be adjusted. Performing a dead parameter reduction can create other dead parameter redexes, dead value redexes, or continuation eta-redexes. Detection of these redexes does not fit the existing model, where an entire deleted subterm is visited after being eliminated from the whole term. Instead, they are detected explicit as part of the reduction implementation. R=asgerf@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=43093

Patch Set 1 #

Total comments: 6

Patch Set 2 : Incorporated review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -80 lines) Patch
M pkg/analyzer2dart/test/end2end_data.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer2dart/test/sexpr_data.dart View 8 chunks +8 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 6 chunks +11 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart View 1 1 chunk +3 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart View 1 13 chunks +153 lines, -25 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/opt_constprop_test.dart View 5 chunks +5 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/opt_redundant_phi_test.dart View 7 chunks +7 lines, -7 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/opt_shrinking_test.dart View 4 chunks +93 lines, -14 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/sexpr_unstringifier.dart View 3 chunks +10 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Kevin Millikin (Google)
5 years, 11 months ago (2015-01-22 13:42:04 UTC) #1
asgerf
LGTM. https://codereview.chromium.org/864293004/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart File pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart (right): https://codereview.chromium.org/864293004/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode635 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:635: // bound by the parent. This gives constant-time ...
5 years, 11 months ago (2015-01-22 16:02:08 UTC) #2
Kevin Millikin (Google)
https://codereview.chromium.org/864293004/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart File pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart (right): https://codereview.chromium.org/864293004/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode635 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:635: // bound by the parent. This gives constant-time access ...
5 years, 11 months ago (2015-01-22 16:16:29 UTC) #3
Kevin Millikin (Google)
5 years, 11 months ago (2015-01-23 10:27:55 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 43093 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698