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

Issue 1625643002: dart2js cps: Make register allocation prioritize phi elimination. (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: Make register allocation prioritize phi elimination. The variable merger pass now prioritizes register allocations that remove a moving assignment "v1 = v2" or enable a compoundable assignment "v1 = v2 + E" to become "v1_2 += E". When minifying, we now allow merging differently named variables. Previously, preserving the variable names was important to get a good register allocation, but that heuristic is no longer needed. BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/a1121d1488ff1bd1f1f739499a408a867a6eb69d

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 2

Patch Set 3 : Set default for minifying parameter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -60 lines) Patch
M pkg/compiler/lib/src/js_backend/codegen/task.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart View 1 2 8 chunks +148 lines, -55 lines 0 comments Download
M tests/compiler/dart2js/cps_ir/expected/redundant_condition.js View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (3 generated)
asgerf
4 years, 11 months ago (2016-01-22 23:00:46 UTC) #3
Kevin Millikin (Google)
lgtm https://codereview.chromium.org/1625643002/diff/20001/pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart File pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart (right): https://codereview.chromium.org/1625643002/diff/20001/pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart#newcode20 pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart:20: VariableMerger({this.minifying}); Is this an optional parameter, or merely ...
4 years, 11 months ago (2016-01-26 08:27:26 UTC) #4
asgerf
https://codereview.chromium.org/1625643002/diff/20001/pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart File pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart (right): https://codereview.chromium.org/1625643002/diff/20001/pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart#newcode20 pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart:20: VariableMerger({this.minifying}); On 2016/01/26 08:27:26, Kevin Millikin (Google) wrote: > ...
4 years, 11 months ago (2016-01-26 09:07:38 UTC) #5
asgerf
4 years, 11 months ago (2016-01-26 11:28:31 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
a1121d1488ff1bd1f1f739499a408a867a6eb69d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698