Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 3a4a36809b72ce3123a59a47ab8164e478906fa3..fab6c917e022e02de3583c53e13b7e41dacbb0d0 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1240,6 +1240,10 @@ void HCompare::SetInputRepresentation(Representation r) { |
if (r.IsTagged()) { |
SetAllSideEffects(); |
ClearFlag(kUseGVN); |
+ } else if (r.IsDouble()) { |
+ SetFlag(kDeoptimizeOnUndefined); |
+ ClearAllSideEffects(); |
+ SetFlag(kUseGVN); |
} else { |
ClearAllSideEffects(); |
SetFlag(kUseGVN); |