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

Unified Diff: runtime/vm/compiler.cc

Issue 11819031: Add canonicalize optimization for branches. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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/intermediate_language.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 16846)
+++ runtime/vm/compiler.cc (working copy)
@@ -210,8 +210,7 @@
flow_graph->ComputeUseLists();
// Do optimizations that depend on the propagated type information.
- // TODO(srdjan): Should this be called CanonicalizeComputations?
- optimizer.OptimizeComputations();
+ optimizer.CanonicalizeComputations();
Kevin Millikin (Google) 2013/01/10 10:35:00 This name is fine, but you could also call it "Can
Florian Schneider 2013/01/10 13:18:41 Done.
// Unbox doubles.
flow_graph->ComputeUseLists();
@@ -224,7 +223,7 @@
if (FLAG_constant_propagation) {
ConstantPropagator::Optimize(flow_graph);
// A canonicalization pass to remove e.g. smi checks on smi constants.
- optimizer.OptimizeComputations();
+ optimizer.CanonicalizeComputations();
}
if (FLAG_common_subexpression_elimination) {
if (DominatorBasedCSE::Optimize(flow_graph)) {
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.h » ('j') | runtime/vm/intermediate_language.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698