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

Issue 1576063003: dart2js cps: Translate identity placeholders to refinement nodes. (Closed)

Created:
4 years, 11 months ago by asgerf
Modified:
4 years, 11 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js cps: Translate identity placeholders to refinement nodes. This avoids emberrasing code like "x = x", and improves GVN, BCE, type refinement etc, since all the optimizations now know that the input and output values are the same. BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/719c1d227ad12651003d36e1e792ac4cf9a288b9

Patch Set 1 #

Patch Set 2 : Add special handling of array types #

Patch Set 3 : Replace array-refinements in finalize pass #

Total comments: 2

Patch Set 4 : Use AST root node instead of source code string #

Patch Set 5 : Merge #

Patch Set 6 : Merge #

Patch Set 7 : Rebase + update expected output #

Patch Set 8 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -2 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart View 1 2 3 4 5 6 7 2 chunks +9 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/finalize.dart View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js/js.dart View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/cps_ir/expected/operators2_3.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (4 generated)
asgerf
This causes regression because redundant phi elimination does not yet remove phis where all inputs ...
4 years, 11 months ago (2016-01-11 19:03:05 UTC) #2
sra1
https://codereview.chromium.org/1576063003/diff/40001/pkg/compiler/lib/src/js/js.dart File pkg/compiler/lib/src/js/js.dart (right): https://codereview.chromium.org/1576063003/diff/40001/pkg/compiler/lib/src/js/js.dart#newcode170 pkg/compiler/lib/src/js/js.dart:170: return template.source == '#'; It would be better to ...
4 years, 11 months ago (2016-01-11 19:31:20 UTC) #3
asgerf
https://codereview.chromium.org/1576063003/diff/40001/pkg/compiler/lib/src/js/js.dart File pkg/compiler/lib/src/js/js.dart (right): https://codereview.chromium.org/1576063003/diff/40001/pkg/compiler/lib/src/js/js.dart#newcode170 pkg/compiler/lib/src/js/js.dart:170: return template.source == '#'; On 2016/01/11 19:31:20, sra1 wrote: ...
4 years, 11 months ago (2016-01-11 20:11:44 UTC) #4
Kevin Millikin (Google)
And LGTM.
4 years, 11 months ago (2016-01-26 08:10:33 UTC) #7
asgerf
4 years, 11 months ago (2016-01-26 08:58:32 UTC) #9
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
719c1d227ad12651003d36e1e792ac4cf9a288b9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698