| Index: lib/compiler/implementation/ssa/nodes.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/ssa/nodes.dart (revision 10938)
|
| +++ lib/compiler/implementation/ssa/nodes.dart (working copy)
|
| @@ -932,7 +932,8 @@
|
| }
|
|
|
| // Compute the set of users of this instruction that is dominated by
|
| - // [other].
|
| + // [other]. If [other] is a user of [this], it is included in the
|
| + // returned set.
|
| Set<HInstruction> dominatedUsers(HInstruction other) {
|
| // Keep track of all instructions that we have to deal with later
|
| // and count the number of them that are in the current block.
|
| @@ -944,7 +945,7 @@
|
| HBasicBlock otherBlock = other.block;
|
| for (int i = 0, length = usedBy.length; i < length; i++) {
|
| HInstruction current = usedBy[i];
|
| - if (current !== other && otherBlock.dominates(current.block)) {
|
| + if (otherBlock.dominates(current.block)) {
|
| if (current.block === otherBlock) usersInCurrentBlock++;
|
| users.add(current);
|
| }
|
|
|