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

Issue 2275853002: Protect types_propagation receiver type strengthening against many users. (Closed)

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

Description

Protect types_propagation receiver type strengthening against many users. receiver.dominatedUsers(instruction) is slow if [instruction] is in a block with thousands of uses of [receiver]. I this case, it makes sense to see if the type would be strengthened first. 10x performance increase on compiling MicroClosures benchmark which has 5k lines like the following two: a.add(this.f1234); a.add(this.f1235); R=sigmund@google.com, het@google.com Committed: https://github.com/dart-lang/sdk/commit/07184079197a999f8e138738fa81f6558f3e34da Reverted: https://github.com/dart-lang/sdk/commit/d63577da675f00e7a9115c7778557d9b186f809d Committed: https://github.com/dart-lang/sdk/commit/52ecac4ed50cd25d5cf1def3e9bfcf1c6a83d133

Patch Set 1 #

Patch Set 2 : baseline #

Patch Set 3 : hoist check for existing refinement #

Total comments: 1

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -22 lines) Patch
M pkg/compiler/lib/src/ssa/nodes.dart View 1 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/ssa/types_propagation.dart View 1 2 1 chunk +36 lines, -20 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
sra1
4 years, 4 months ago (2016-08-24 20:18:59 UTC) #4
Siggi Cherem (dart-lang)
lgtm
4 years, 4 months ago (2016-08-24 21:25:29 UTC) #5
sra1
Committed patchset #1 (id:1) manually as 07184079197a999f8e138738fa81f6558f3e34da (presubmit successful).
4 years, 3 months ago (2016-08-25 19:28:42 UTC) #7
Siggi Cherem (dart-lang)
it appears that this broke a test: python tools/test.py -mrelease -cdart2js -rd8 language/type_propagation3_test I haven't ...
4 years, 3 months ago (2016-08-26 00:46:15 UTC) #8
sra1
On 2016/08/26 00:46:15, Siggi Cherem (dart-lang) wrote: > it appears that this broke a test: ...
4 years, 3 months ago (2016-08-26 03:10:18 UTC) #10
sra1
PTAL
4 years, 3 months ago (2016-08-26 03:47:12 UTC) #11
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2275853002/diff/40001/pkg/compiler/lib/src/ssa/types_propagation.dart File pkg/compiler/lib/src/ssa/types_propagation.dart (right): https://codereview.chromium.org/2275853002/diff/40001/pkg/compiler/lib/src/ssa/types_propagation.dart#newcode387 pkg/compiler/lib/src/ssa/types_propagation.dart:387: if (next.instructionType != computeNewType()) { originally this update was ...
4 years, 3 months ago (2016-08-26 15:46:34 UTC) #12
Siggi Cherem (dart-lang)
we discussed this offline, lgtm!
4 years, 3 months ago (2016-08-26 17:03:48 UTC) #13
sra1
4 years, 3 months ago (2016-08-29 17:58:20 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
52ecac4ed50cd25d5cf1def3e9bfcf1c6a83d133 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698