Index: runtime/vm/precompiler.cc |
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc |
index f3b5822ec4a73c024e8f59ff59839252eff2df0a..970c8493901482da96663d64cb7d97a24693e419 100644 |
--- a/runtime/vm/precompiler.cc |
+++ b/runtime/vm/precompiler.cc |
@@ -3216,6 +3216,8 @@ bool PrecompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) { |
// it depends on the numbering of loads from the previous |
// load-elimination. |
if (FLAG_loop_invariant_code_motion) { |
+ flow_graph->RenameUsesDominatedByRedefinitions(); |
+ DEBUG_ASSERT(flow_graph->VerifyRedefinitions()); |
LICM licm(flow_graph); |
licm.Optimize(); |
DEBUG_ASSERT(flow_graph->VerifyUseLists()); |