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

Issue 1226353003: dart2js cps: Bugfix in assignment propagation into branch conditions. (Closed)

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

Description

dart2js cps: Bugfix in assignment propagation into branch conditions. Assignment propagation traverses the tree backwards, and should therefore visit the branch condition of an 'if' after its two branches. It happened to work (in the sense of not breaking the code) but only for very subtle reasons. This fixes an optimization bug that prevented assignments from propagating to their first use when the first use was in a branch condition. BUG= R=karlklose@google.com Committed: https://github.com/dart-lang/sdk/commit/5a20c361b938fceb33f2cdd9460f8f32c4edf0f4

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
M pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart View 1 chunk +5 lines, -7 lines 1 comment Download

Messages

Total messages: 4 (1 generated)
asgerf
https://codereview.chromium.org/1226353003/diff/1/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart File pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart (left): https://codereview.chromium.org/1226353003/diff/1/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart#oldcode593 pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart:593: // be handled well. This comment was just outdated. ...
5 years, 5 months ago (2015-07-09 11:19:02 UTC) #2
karlklose
LGTM!
5 years, 5 months ago (2015-07-09 12:56:12 UTC) #3
asgerf
5 years, 5 months ago (2015-07-09 15:05:00 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
5a20c361b938fceb33f2cdd9460f8f32c4edf0f4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698