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

Unified Diff: runtime/vm/compiler.cc

Issue 22839003: Polymorphic inlining for some recognized methods in the optimizing compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 25997)
+++ runtime/vm/compiler.cc (working copy)
@@ -338,6 +338,17 @@
optimizer.TryOptimizeLeftShiftWithBitAndPattern();
DEBUG_ASSERT(flow_graph->VerifyUseLists());
+ // Propagate types and eliminate more type tests.
+ if (FLAG_propagate_types) {
+ FlowGraphTypePropagator propagator(flow_graph);
+ propagator.Propagate();
Kevin Millikin (Google) 2013/08/13 11:47:40 Why? We compute this five times. The other four
Florian Schneider 2013/08/14 12:30:24 Without this I get some performance regressions wh
+ DEBUG_ASSERT(flow_graph->VerifyUseLists());
+ }
+
+ // Use propagated class-ids to optimize further.
+ optimizer.ApplyClassIds();
+ DEBUG_ASSERT(flow_graph->VerifyUseLists());
+
// Inlining (mutates the flow graph)
if (FLAG_use_inlining) {
TimerScope timer(FLAG_compiler_stats,

Powered by Google App Engine
This is Rietveld 408576698