Index: runtime/vm/precompiler.cc |
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc |
index 13c4595e5535617f29b3711ded14422758982ca5..1eaf79a917eb729e8daaee09eb3844eb244f92e1 100644 |
--- a/runtime/vm/precompiler.cc |
+++ b/runtime/vm/precompiler.cc |
@@ -2674,6 +2674,9 @@ bool PrecompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) { |
sinking->DetachMaterializations(); |
} |
+ // Replace bounds check instruction with a generic one. |
+ optimizer.ReplaceArrayBoundChecks(); |
+ |
// Compute and store graph informations (call & instruction counts) |
// to be later used by the inliner. |
FlowGraphInliner::CollectGraphInfo(flow_graph, true); |