Index: src/compiler/js-builtin-reducer.cc |
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc |
index 2a032dbfb2dc1d1df44abb07552ae372081aa09e..12b0e2f6cc97d38eb8986ec3f8a19b923ba008a3 100644 |
--- a/src/compiler/js-builtin-reducer.cc |
+++ b/src/compiler/js-builtin-reducer.cc |
@@ -118,8 +118,8 @@ Reduction JSBuiltinReducer::ReduceMathMax(Node* node) { |
Node* const input = r.GetJSCallInput(i); |
value = graph()->NewNode( |
common()->Select(kMachNone), |
- graph()->NewNode(simplified()->NumberLessThan(), input, value), input, |
- value); |
+ graph()->NewNode(simplified()->NumberLessThan(), input, value), value, |
+ input); |
} |
return Replace(value); |
} |