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

Unified Diff: runtime/vm/compiler.cc

Issue 23549020: Optimize conditional branches that have same true/false targets. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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.h » ('j') | runtime/vm/flow_graph_optimizer.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 27294)
+++ runtime/vm/compiler.cc (working copy)
@@ -456,6 +456,8 @@
// Constant propagation can use information from range analysis to
// find unreachable branch targets.
ConstantPropagator::OptimizeBranches(flow_graph);
+ // Eliminate branches that have the same true- and false-target.
+ ConstantPropagator::RemoveRedundantBranches(flow_graph);
Kevin Millikin (Google) 2013/09/27 11:03:43 Since Optimize and RemoveRedundant go together, I'
Florian Schneider 2013/09/30 12:19:23 Done.
DEBUG_ASSERT(flow_graph->VerifyUseLists());
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.h » ('j') | runtime/vm/flow_graph_optimizer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698