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

Issue 10950035: Improve SminessPropagator to propagate sminess across cycles of phis. (Closed)

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

Description

Improve SminessPropagator to propagate sminess across cycles of phis. R=fschneider@google.com Committed: https://code.google.com/p/dart/source/detail?r=12630

Patch Set 1 #

Total comments: 1

Patch Set 2 : address Florian's comment #

Total comments: 2

Patch Set 3 : done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -10 lines) Patch
M runtime/vm/flow_graph_optimizer.cc View 1 2 2 chunks +43 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Vyacheslav Egorov (Google)
8 years, 3 months ago (2012-09-19 19:10:26 UTC) #1
Florian Schneider
Can you look at the following example again? All phis should be smis here, but ...
8 years, 3 months ago (2012-09-20 08:54:02 UTC) #2
Vyacheslav Egorov (Google)
You are right, I need to transitively propagate optimistic marking before I start unmarking phis. ...
8 years, 3 months ago (2012-09-20 11:22:43 UTC) #3
Florian Schneider
8 years, 3 months ago (2012-09-20 11:48:50 UTC) #4
LGTM.

https://codereview.chromium.org/10950035/diff/5001/runtime/vm/flow_graph_opti...
File runtime/vm/flow_graph_optimizer.cc (right):

https://codereview.chromium.org/10950035/diff/5001/runtime/vm/flow_graph_opti...
runtime/vm/flow_graph_optimizer.cc:1113: // Place all operands that are
potentially smi phis to worklist.
I don't see how input operands can be affected by the current phi. Shouldn't it
be enough to add all uses of this phi to the worklist?

https://codereview.chromium.org/10950035/diff/5001/runtime/vm/flow_graph_opti...
runtime/vm/flow_graph_optimizer.cc:1133: AddToWorklist(phi_use);
Maybe rename this to AppendToWorkList since the algorithm relies on the fact
that new phis are added at the end of the list.

Powered by Google App Engine
This is Rietveld 408576698