Chromium Code Reviews| Index: runtime/vm/flow_graph_inliner.cc |
| =================================================================== |
| --- runtime/vm/flow_graph_inliner.cc (revision 32194) |
| +++ runtime/vm/flow_graph_inliner.cc (working copy) |
| @@ -1011,6 +1011,10 @@ |
| // Convert the old target entry to a new join entry. |
| TargetEntryInstr* old_target = |
| inlined_entries_[i]->AsGraphEntry()->normal_entry(); |
| + // Unuse all inputs in the the old graph entry since it is not part of |
| + // the graph anymore. A new target be created instead. |
|
srdjan
2014/02/01 00:47:36
Fix last sentence in the comment.
Florian Schneider
2014/02/03 09:47:42
Oops. Will fix this my next CL.
|
| + inlined_entries_[i]->AsGraphEntry()->UnuseAllInputs(); |
| + |
| JoinEntryInstr* new_join = BranchSimplifier::ToJoinEntry(old_target); |
| old_target->ReplaceAsPredecessorWith(new_join); |
| for (intptr_t j = 0; j < old_target->dominated_blocks().length(); ++j) { |