| Index: runtime/vm/compiler.cc
|
| ===================================================================
|
| --- runtime/vm/compiler.cc (revision 20842)
|
| +++ runtime/vm/compiler.cc (working copy)
|
| @@ -264,6 +264,13 @@
|
| DEBUG_ASSERT(flow_graph->VerifyUseLists());
|
| }
|
|
|
| + if (FLAG_constant_propagation) {
|
| + // Constant propagation can use information from range analysis to
|
| + // find unreachable branch targets.
|
| + ConstantPropagator::OptimizeBranches(flow_graph);
|
| + DEBUG_ASSERT(flow_graph->VerifyUseLists());
|
| + }
|
| +
|
| // The final canonicalization pass before the code generation.
|
| if (FLAG_propagate_types) {
|
| // Recompute types after code movement was done to ensure correct
|
|
|