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

Issue 27727002: Optimize identical-comparisons based on propagated type information. (Closed)

Created:
7 years, 2 months ago by Florian Schneider
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Optimize identical-comparisons based on propagated type information. If the propagated type allows, eliminate the check for numbers at identical operations in optimized code. The previous optimizaton was done before full type propagation was run and was therefore not very effective. * Made flow-graph printing having no side-effects: calling Type() lazily initializes the type_ and reaching_type_ fields of Value and Definition. Access fields directly when printing instead. Also, fixed two random spelling mistakes. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=28851

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -28 lines) Patch
M runtime/bin/eventhandler_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_optimizer.h View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 chunk +0 lines, -21 lines 0 comments Download
M runtime/vm/il_printer.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Florian Schneider
7 years, 2 months ago (2013-10-17 16:38:27 UTC) #1
srdjan
lgtm https://codereview.chromium.org/27727002/diff/6001/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/27727002/diff/6001/runtime/vm/intermediate_language.cc#newcode1656 runtime/vm/intermediate_language.cc:1656: } else if (!MaybeNumber(left()->Type()) || !MaybeNumber(right()->Type())) { Wouldn't ...
7 years, 2 months ago (2013-10-17 17:06:45 UTC) #2
Florian Schneider
https://codereview.chromium.org/27727002/diff/6001/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/27727002/diff/6001/runtime/vm/intermediate_language.cc#newcode1656 runtime/vm/intermediate_language.cc:1656: } else if (!MaybeNumber(left()->Type()) || !MaybeNumber(right()->Type())) { On 2013/10/17 ...
7 years, 2 months ago (2013-10-18 10:55:27 UTC) #3
Florian Schneider
@Kevin: Could you have a quick look at il_printer.cc? I added the change to make ...
7 years, 2 months ago (2013-10-18 10:59:35 UTC) #4
Kevin Millikin (Google)
Excellent.
7 years, 2 months ago (2013-10-18 11:06:59 UTC) #5
Florian Schneider
7 years, 2 months ago (2013-10-18 11:14:07 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r28851 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698