Index: runtime/vm/flow_graph.cc |
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc |
index 3296e096dc1f3ca90183123f0f6dc728e1e501c4..a5cadf04173fc9749c9b3e9e511986c453d7b3db 100644 |
--- a/runtime/vm/flow_graph.cc |
+++ b/runtime/vm/flow_graph.cc |
@@ -19,7 +19,6 @@ namespace dart { |
DEFINE_FLAG(bool, trace_smi_widening, false, "Trace Smi->Int32 widening pass."); |
#endif |
DEFINE_FLAG(bool, prune_dead_locals, true, "optimize dead locals away"); |
-DECLARE_FLAG(bool, reorder_basic_blocks); |
DECLARE_FLAG(bool, verify_compiler); |
@@ -105,8 +104,9 @@ void FlowGraph::AddToDeferredPrefixes( |
bool FlowGraph::ShouldReorderBlocks(const Function& function, |
bool is_optimized) { |
- return is_optimized && FLAG_reorder_basic_blocks && |
- FLAG_emit_edge_counters && !function.is_intrinsic(); |
+ return is_optimized |
+ && FLAG_reorder_basic_blocks |
+ && !function.is_intrinsic(); |
} |