| Index: pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/redundant_phi.dart b/pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
| index 0fe59ba9ad9e313e0ff29adfee99f5aff09899de..1f40c037f6fa899f6025bc7891d45972d93e2053 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/redundant_phi.dart
|
| @@ -2,7 +2,10 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -part of dart2js.cps_ir.optimizers;
|
| +library dart2js.cps_ir.redundant_phi_elimination;
|
| +
|
| +import 'cps_ir_nodes.dart';
|
| +import 'optimizers.dart';
|
|
|
| /// Eliminate redundant phis from the given [FunctionDefinition].
|
| ///
|
| @@ -18,9 +21,7 @@ class RedundantPhiEliminator extends RecursiveVisitor implements Pass {
|
| final Set<Continuation> workSet = new Set<Continuation>();
|
|
|
| @override
|
| - void rewrite(RootNode root) {
|
| - if (root.isEmpty) return;
|
| -
|
| + void rewrite(FunctionDefinition root) {
|
| // Set all parent pointers.
|
| new ParentVisitor().visit(root);
|
|
|
|
|