Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (revision 22498) |
+++ sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (working copy) |
@@ -1173,7 +1173,7 @@ |
while (instruction != null) { |
HInstruction next = instruction.next; |
if (instruction.useGvn() |
- && (instruction is !HCheck) |
+ && !instruction.canThrow() |
&& !instruction.sideEffects.dependsOn(dependsFlags)) { |
bool loopInvariantInputs = true; |
List<HInstruction> inputs = instruction.inputs; |