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

Unified Diff: runtime/vm/flow_graph_builder.h

Issue 10832180: Eliminate phis that do not reach any non-environment uses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_builder.h
diff --git a/runtime/vm/flow_graph_builder.h b/runtime/vm/flow_graph_builder.h
index ee146aa0a9ccf51022d291e898ae987a23ddd420..c6c50fe0c0007e35dededf18115bd4520191f6f2 100644
--- a/runtime/vm/flow_graph_builder.h
+++ b/runtime/vm/flow_graph_builder.h
@@ -69,14 +69,17 @@ class FlowGraphBuilder: public ValueObject {
GrowableArray<intptr_t>* parent,
GrowableArray<intptr_t>* label);
- void Rename();
+ void Rename(GrowableArray<PhiInstr*>* live_phis);
void RenameRecursive(BlockEntryInstr* block_entry,
- GrowableArray<Value*>* env);
+ GrowableArray<Value*>* env,
+ GrowableArray<PhiInstr*>* live_phis);
void InsertPhis(const GrowableArray<BlockEntryInstr*>& preorder,
const GrowableArray<BitVector*>& assigned_vars,
const GrowableArray<BitVector*>& dom_frontier);
+ void MarkLivePhis(GrowableArray<PhiInstr*>* live_phis);
+
const ParsedFunction& parsed_function_;
const intptr_t copied_parameter_count_;

Powered by Google App Engine
This is Rietveld 408576698