Chromium Code Reviews| Index: lib/compiler/implementation/ssa/codegen.dart |
| =================================================================== |
| --- lib/compiler/implementation/ssa/codegen.dart (revision 8378) |
| +++ lib/compiler/implementation/ssa/codegen.dart (working copy) |
| @@ -1724,7 +1724,7 @@ |
| } |
| visitPhi(HPhi node) { |
| - HBasicBlock ifBlock = node.block.predecessors[0].predecessors[0]; |
| + HBasicBlock ifBlock = node.block.dominator; |
| // This method is only called for phis that are generated at use |
|
floitsch
2012/06/07 09:23:24
Move the comment before the first line of the func
ngeoffray
2012/06/07 10:05:48
Done.
|
| // site. A phi can be generated at use site only if it is the |
| // result of a logical operation. |