| Index: runtime/vm/compiler.cc
|
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
|
| index bc4444030a93d7b96b96c1b496a5f026b73960fc..d99341568bdd607ba3d126c0433420de0b0be252 100644
|
| --- a/runtime/vm/compiler.cc
|
| +++ b/runtime/vm/compiler.cc
|
| @@ -259,6 +259,13 @@ static bool CompileParsedFunctionHelper(const ParsedFunction& parsed_function,
|
| }
|
|
|
| // The final canonicalization pass before the code generation.
|
| + if (FLAG_propagate_types) {
|
| + // Recompute types after code movement was done to ensure correct
|
| + // reaching types for hoisted values.
|
| + FlowGraphTypePropagator propagator(flow_graph);
|
| + propagator.Propagate();
|
| + DEBUG_ASSERT(flow_graph->VerifyUseLists());
|
| + }
|
| optimizer.Canonicalize();
|
| DEBUG_ASSERT(flow_graph->VerifyUseLists());
|
|
|
|
|