Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: src/compiler/simplified-lowering.cc

Issue 2294143004: [turbofan] Fix Math.sign. (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/compiler/math-sign.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 73c8af667b8595923a2a725f79fdaf9d6c91f234..799ab1b23249c314744315de3f836df6b64d0c0d 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -2849,7 +2849,7 @@ Node* SimplifiedLowering::Float64Sign(Node* const node) {
graph()->NewNode(
common()->Select(MachineRepresentation::kFloat64),
graph()->NewNode(machine()->Float64LessThan(), zero, input), one,
- zero));
+ input));
}
Node* SimplifiedLowering::Int32Abs(Node* const node) {
« no previous file with comments | « no previous file | test/mjsunit/compiler/math-sign.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698