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

Issue 537963002: Improve LoadOptimizer::ReplacePhiWith. (Closed)

Created:
6 years, 3 months ago by Vyacheslav Egorov (Google)
Modified:
6 years, 3 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Improve LoadOptimizer::ReplacePhiWith. Previously we were only looking for congruent phis. But we can also include all operations that allow CSE and have no dependencies (e.g. arithmetic) into the congruency check. This allows in the code like var idx = 0; for (var el in src) dst[idx++] = el; see the congruency between Phi introduced for idx and Phi that LoadOptimizer emits for iterator's _index field. As the result we are able to optimize this code to use a single iteration variable instead of two. R=fschneider@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=39864

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -39 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 2 chunks +112 lines, -39 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Vyacheslav Egorov (Google)
PTAL
6 years, 3 months ago (2014-09-04 11:57:31 UTC) #1
Florian Schneider
lgtm https://codereview.chromium.org/537963002/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/537963002/diff/1/runtime/vm/flow_graph_optimizer.cc#newcode6934 runtime/vm/flow_graph_optimizer.cc:6934: // During the comparison worklist contains pairs of ...
6 years, 3 months ago (2014-09-04 12:30:49 UTC) #2
Vyacheslav Egorov (Google)
https://codereview.chromium.org/537963002/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://codereview.chromium.org/537963002/diff/1/runtime/vm/flow_graph_optimizer.cc#newcode6934 runtime/vm/flow_graph_optimizer.cc:6934: // During the comparison worklist contains pairs of definintions ...
6 years, 3 months ago (2014-09-04 12:56:13 UTC) #3
Vyacheslav Egorov (Google)
6 years, 3 months ago (2014-09-04 12:56:24 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 39864 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698