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

Issue 1474133002: dart2js cps: Fix bug in bounds check elimination. (Closed)

Created:
5 years ago by asgerf
Modified:
5 years 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: Fix bug in bounds check elimination. The cycle detection assumed that positive-weight cycles could safely be ignored while searching for a negative-weight cycle, but this broke the memoization in the DFS. Do not try to use DFS to find shortest paths in cyclic graphs. BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/09a5ed9134304fcad7f3ec5319e8c1040150f38e

Patch Set 1 #

Patch Set 2 : Rephrase a comment #

Total comments: 10

Patch Set 3 : Address kevins comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -85 lines) Patch
M pkg/compiler/lib/src/cps_ir/octagon.dart View 1 2 3 chunks +68 lines, -85 lines 0 comments Download
M tests/compiler/dart2js/octagon_test.dart View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
asgerf
I feel slightly embarrassed that I messed up a shortest path algorithm :-\
5 years ago (2015-11-26 15:58:11 UTC) #2
Kevin Millikin (Google)
I'm afraid I don't understand the language of constraints well enough (yet) to understand this ...
5 years ago (2015-11-27 10:44:20 UTC) #3
Kevin Millikin (Google)
lgtm
5 years ago (2015-11-27 10:49:51 UTC) #4
asgerf
https://codereview.chromium.org/1474133002/diff/20001/pkg/compiler/lib/src/cps_ir/octagon.dart File pkg/compiler/lib/src/cps_ir/octagon.dart (right): https://codereview.chromium.org/1474133002/diff/20001/pkg/compiler/lib/src/cps_ir/octagon.dart#newcode96 pkg/compiler/lib/src/cps_ir/octagon.dart:96: if (_unsolvableCounter == 0 && _checkUnsolvable(constraint)) { On 2015/11/27 ...
5 years ago (2015-11-27 10:50:53 UTC) #5
asgerf
5 years ago (2015-11-27 13:15:34 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
09a5ed9134304fcad7f3ec5319e8c1040150f38e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698