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

Unified Diff: runtime/vm/compiler.cc

Issue 10909094: Implement loop invariant code motion for check instructions. (Closed) Base URL: http://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
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 11934)
+++ runtime/vm/compiler.cc (working copy)
@@ -36,6 +36,7 @@
DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from ssa compiler.");
DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations.");
DEFINE_FLAG(bool, cse, true, "Do common subexpression elimination.");
+DEFINE_FLAG(bool, licm, true, "Do loop invariant code motion.");
DEFINE_FLAG(int, deoptimization_counter_threshold, 5,
"How many times we allow deoptimization before we disallow"
" certain optimizations");
@@ -213,6 +214,9 @@
flow_graph->ComputeUseLists();
DominatorBasedCSE::Optimize(flow_graph->graph_entry());
}
+ if (FLAG_licm) {
+ LICM::Optimize(flow_graph);
+ }
// Perform register allocation on the SSA graph.
FlowGraphAllocator allocator(*flow_graph);

Powered by Google App Engine
This is Rietveld 408576698