| Index: sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart (revision 21860)
|
| +++ sdk/lib/_internal/compiler/implementation/ssa/value_range_analyzer.dart (working copy)
|
| @@ -785,10 +785,7 @@
|
| cursor.block.addBefore(cursor, newInstruction);
|
| // Update the users of the instruction dominated by [cursor] to
|
| // use the new instruction, that has an narrower range.
|
| - Set<HInstruction> dominatedUsers = instruction.dominatedUsers(cursor);
|
| - for (HInstruction user in dominatedUsers) {
|
| - user.changeUse(instruction, newInstruction);
|
| - }
|
| + instruction.replaceAllUsersDominatedBy(cursor, newInstruction);
|
| return newInstruction;
|
| }
|
|
|
|
|