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

Issue 10939036: A simpler scheme for garbage collection of ureachable phi inputs. (Closed)

Created:
8 years, 3 months ago by Kevin Millikin (Google)
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

A simpler scheme for garbage collection of ureachable phi inputs. Simplify the garbage collection of unreachable phi inputs. Assign immutable block ids to basic blocks and ensure that both predecessor blocks and phi inputs are kept sorted by block id. R=vegorov@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=12621

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix bug when multiple predecessors are unreachable. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -131 lines) Patch
M runtime/vm/flow_graph.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.h View 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 16 chunks +43 lines, -22 lines 1 comment Download
M runtime/vm/flow_graph_optimizer.cc View 1 3 chunks +36 lines, -15 lines 0 comments Download
M runtime/vm/growable_array.h View 1 1 chunk +0 lines, -8 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 9 chunks +13 lines, -34 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 2 chunks +14 lines, -49 lines 0 comments Download
M runtime/vm/intermediate_language_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Kevin Millikin (Google)
8 years, 3 months ago (2012-09-19 16:32:25 UTC) #1
Kevin Millikin (Google)
Ian, can you take a look at this?
8 years, 3 months ago (2012-09-20 08:21:08 UTC) #2
zerny-google
lgtm with one question. https://codereview.chromium.org/10939036/diff/3001/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://codereview.chromium.org/10939036/diff/3001/runtime/vm/flow_graph_builder.cc#newcode2517 runtime/vm/flow_graph_builder.cc:2517: catch_entry->set_catch_try_index(try_index); Why use a setter ...
8 years, 3 months ago (2012-09-20 08:43:53 UTC) #3
Vyacheslav Egorov (Google)
https://chromiumcodereview.appspot.com/10939036/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (right): https://chromiumcodereview.appspot.com/10939036/diff/1/runtime/vm/flow_graph_optimizer.cc#newcode2407 runtime/vm/flow_graph_optimizer.cc:2407: BranchInstr* branch = i.Current()->AsBranch(); I find it very confusing ...
8 years, 3 months ago (2012-09-21 12:52:59 UTC) #4
Kevin Millikin (Google)
8 years, 3 months ago (2012-09-21 13:08:04 UTC) #5
https://chromiumcodereview.appspot.com/10939036/diff/1/runtime/vm/flow_graph_...
File runtime/vm/flow_graph_optimizer.cc (right):

https://chromiumcodereview.appspot.com/10939036/diff/1/runtime/vm/flow_graph_...
runtime/vm/flow_graph_optimizer.cc:2407: BranchInstr* branch =
i.Current()->AsBranch();
I'll move it out.

https://chromiumcodereview.appspot.com/10939036/diff/1/runtime/vm/intermediat...
File runtime/vm/intermediate_language.cc (right):

https://chromiumcodereview.appspot.com/10939036/diff/1/runtime/vm/intermediat...
runtime/vm/intermediate_language.cc:490: (predecessors_[index]->block_id() <
pred_id)) {
OK.

Powered by Google App Engine
This is Rietveld 408576698