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

Issue 10824371: Add an optional parameter to the dominatedUsers function in case we want to analyze the whole block, (Closed)

Created:
8 years, 4 months ago by ngeoffray
Modified:
8 years, 4 months ago
Reviewers:
floitsch, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add an optional parameter to the dominatedUsers function in case we want to analyze the whole block, and not only from an instruction. Fixes bug 4069. Committed: https://code.google.com/p/dart/source/detail?r=10957

Patch Set 1 : #

Total comments: 5

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -13 lines) Patch
M lib/compiler/implementation/ssa/nodes.dart View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M lib/compiler/implementation/ssa/optimize.dart View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M lib/compiler/implementation/ssa/types_propagation.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M tests/compiler/dart2js/dart2js.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
ngeoffray
8 years, 4 months ago (2012-08-20 09:55:49 UTC) #1
kasperl
LGTM, but maybe you could get away with always adding [other] to the set if ...
8 years, 4 months ago (2012-08-20 11:37:21 UTC) #2
ngeoffray
Thank you Kasper for your comments. I have changed the code to include [other] if ...
8 years, 4 months ago (2012-08-20 12:55:01 UTC) #3
kasperl
LGTM! https://chromiumcodereview.appspot.com/10824371/diff/1002/lib/compiler/implementation/ssa/nodes.dart File lib/compiler/implementation/ssa/nodes.dart (right): https://chromiumcodereview.appspot.com/10824371/diff/1002/lib/compiler/implementation/ssa/nodes.dart#newcode935 lib/compiler/implementation/ssa/nodes.dart:935: // [other], [other] included. Maybe explain this a ...
8 years, 4 months ago (2012-08-20 12:58:35 UTC) #4
ngeoffray
8 years, 4 months ago (2012-08-20 13:01:32 UTC) #5
Thanks Kasper

https://chromiumcodereview.appspot.com/10824371/diff/1002/lib/compiler/implem...
File lib/compiler/implementation/ssa/nodes.dart (right):

https://chromiumcodereview.appspot.com/10824371/diff/1002/lib/compiler/implem...
lib/compiler/implementation/ssa/nodes.dart:935: // [other], [other] included.
On 2012/08/20 12:58:35, kasperl wrote:
> Maybe explain this a bit better. Like: If [other] is a user of [this]
> instruction, it is included in the returned set.

Done.

https://chromiumcodereview.appspot.com/10824371/diff/1002/lib/compiler/implem...
File lib/compiler/implementation/ssa/optimize.dart (right):

https://chromiumcodereview.appspot.com/10824371/diff/1002/lib/compiler/implem...
lib/compiler/implementation/ssa/optimize.dart:1143: for (HInstruction user in
dominatedUsers) {
On 2012/08/20 12:58:35, kasperl wrote:
> Use dominatedUsers.forEach?

Sure. Personal preference?

Powered by Google App Engine
This is Rietveld 408576698