Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 575b64a48780780ed4986df9eccf5f61b8d10c24..34c7df4ece93d01ea7ddee942a3d40543bb46331 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -805,21 +805,6 @@ Reduction JSTypedLowering::ReduceJSToLength(Node* node) { |
} |
Reduction JSTypedLowering::ReduceJSToNumberInput(Node* input) { |
- // Check for ToNumber truncation of signaling NaN to undefined mapping. |
- if (input->opcode() == IrOpcode::kSelect) { |
- Node* check = NodeProperties::GetValueInput(input, 0); |
- Node* vtrue = NodeProperties::GetValueInput(input, 1); |
- Type* vtrue_type = NodeProperties::GetType(vtrue); |
- Node* vfalse = NodeProperties::GetValueInput(input, 2); |
- Type* vfalse_type = NodeProperties::GetType(vfalse); |
- if (vtrue_type->Is(Type::Undefined()) && vfalse_type->Is(Type::Number())) { |
- if (check->opcode() == IrOpcode::kNumberIsHoleNaN && |
- check->InputAt(0) == vfalse) { |
- // JSToNumber(Select(NumberIsHoleNaN(x), y:undefined, x:number)) => x |
- return Replace(vfalse); |
- } |
- } |
- } |
// Try constant-folding of JSToNumber with constant inputs. |
Type* input_type = NodeProperties::GetType(input); |
if (input_type->IsConstant()) { |