Index: src/compiler/machine-operator-reducer.cc |
diff --git a/src/compiler/machine-operator-reducer.cc b/src/compiler/machine-operator-reducer.cc |
index 07d6820f069ebcf4d878269770fb6abed934784c..f0032d7d05bb31037f2a7b2c02a6f1dec14e9a2f 100644 |
--- a/src/compiler/machine-operator-reducer.cc |
+++ b/src/compiler/machine-operator-reducer.cc |
@@ -401,6 +401,11 @@ Reduction MachineOperatorReducer::Reduce(Node* node) { |
if (m.HasValue()) return ReplaceFloat64(base::ieee754::atanh(m.Value())); |
break; |
} |
+ case IrOpcode::kFloat64Cos: { |
+ Float64Matcher m(node->InputAt(0)); |
+ if (m.HasValue()) return ReplaceFloat64(base::ieee754::cos(m.Value())); |
+ break; |
+ } |
case IrOpcode::kFloat64Exp: { |
Float64Matcher m(node->InputAt(0)); |
if (m.HasValue()) return ReplaceFloat64(base::ieee754::exp(m.Value())); |
@@ -436,6 +441,11 @@ Reduction MachineOperatorReducer::Reduce(Node* node) { |
if (m.HasValue()) return ReplaceFloat64(base::ieee754::cbrt(m.Value())); |
break; |
} |
+ case IrOpcode::kFloat64Sin: { |
+ Float64Matcher m(node->InputAt(0)); |
+ if (m.HasValue()) return ReplaceFloat64(base::ieee754::sin(m.Value())); |
+ break; |
+ } |
case IrOpcode::kChangeFloat32ToFloat64: { |
Float32Matcher m(node->InputAt(0)); |
if (m.HasValue()) return ReplaceFloat64(m.Value()); |