Index: runtime/vm/compiler.cc |
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc |
index 406802556d4ad3826947b4c71bf670efdf8b7d37..0931e8fb23a9d615cd76960b100253032ee7d82f 100644 |
--- a/runtime/vm/compiler.cc |
+++ b/runtime/vm/compiler.cc |
@@ -246,6 +246,9 @@ static bool CompileParsedFunctionHelper(const ParsedFunction& parsed_function, |
optimizer.InferSmiRanges(); |
} |
+ // The final canonicalization pass before the code generation. |
+ optimizer.Canonicalize(); |
+ |
// Perform register allocation on the SSA graph. |
FlowGraphAllocator allocator(*flow_graph); |
allocator.AllocateRegisters(); |