Chromium Code Reviews| 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,7 @@ |
| } |
| // Compute the set of users of this instruction that is dominated by |
| - // [other]. |
| + // [other], [other] included. |
|
kasperl
2012/08/20 12:58:35
Maybe explain this a bit better. Like: If [other]
ngeoffray
2012/08/20 13:01:32
Done.
|
| 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 +944,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); |
| } |