Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index 3069865adb29664c8b68f589b74d17f66d217cb0..bbbe0f781074c6465d7424e1bea1b5e428168bd0 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -632,7 +632,7 @@ class RepresentationSelector { |
if (lower()) DeferReplacement(node, lowering->Int32Div(node)); |
break; |
} |
- if (CanLowerToUint32Binop(node, use)) { |
+ if (BothInputsAre(node, Type::Unsigned32()) && !CanObserveNaN(use)) { |
// => unsigned Uint32Div |
VisitUint32Binop(node); |
if (lower()) DeferReplacement(node, lowering->Uint32Div(node)); |