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

Unified Diff: runtime/vm/flow_graph_optimizer.h

Issue 10916155: Optimistically hoist SmiCheck through phi when the only value of unknown type coming into the phi i… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.h
diff --git a/runtime/vm/flow_graph_optimizer.h b/runtime/vm/flow_graph_optimizer.h
index ddb40f22cd45cbae45593cc08566e621b49bed8f..b6df5e2163b9fd7f348369fe4f73a0c1b080a06a 100644
--- a/runtime/vm/flow_graph_optimizer.h
+++ b/runtime/vm/flow_graph_optimizer.h
@@ -124,6 +124,16 @@ class FlowGraphTypePropagator : public FlowGraphVisitor {
class LICM : public AllStatic {
public:
static void Optimize(FlowGraph* flow_graph);
+
+ private:
+ static void Hoist(ForwardInstructionIterator* it,
+ BlockEntryInstr* pre_header,
+ Definition* current);
+
+ static void TryHoistCheckSmiThroughPhi(ForwardInstructionIterator* it,
+ BlockEntryInstr* header,
+ BlockEntryInstr* pre_header,
+ Definition* current);
};
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698