Index: src/compiler/simplified-operator-reducer.cc |
diff --git a/src/compiler/simplified-operator-reducer.cc b/src/compiler/simplified-operator-reducer.cc |
index 0b2e85a49db44334487bc5d46c86595bb70a87e1..5db9dfbf5660db5a9be31f146bb1d4965eaf0619 100644 |
--- a/src/compiler/simplified-operator-reducer.cc |
+++ b/src/compiler/simplified-operator-reducer.cc |
@@ -157,6 +157,11 @@ Reduction SimplifiedOperatorReducer::Reduce(Node* node) { |
} |
break; |
} |
+ case IrOpcode::kNumberAbs: { |
+ NumberMatcher m(node->InputAt(0)); |
+ if (m.HasValue()) return ReplaceNumber(std::fabs(m.Value())); |
+ break; |
+ } |
case IrOpcode::kNumberCeil: |
case IrOpcode::kNumberFloor: |
case IrOpcode::kNumberRound: |