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

Unified Diff: src/compiler/typed-optimization.cc

Issue 2743673002: [turbofan] Revert invalid optimization of flooring division. (Closed)
Patch Set: Created 3 years, 9 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/regress/regress-crbug-699282.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typed-optimization.cc
diff --git a/src/compiler/typed-optimization.cc b/src/compiler/typed-optimization.cc
index bc0d80ade0aeaf8df83cb9d2caefa9dcbf388019..76ae9d48ec1b714066c539c5451eb89fe327e8ba 100644
--- a/src/compiler/typed-optimization.cc
+++ b/src/compiler/typed-optimization.cc
@@ -219,11 +219,6 @@ Reduction TypedOptimization::ReduceNumberFloor(Node* node) {
NodeProperties::SetType(node, lhs_type);
return Changed(node);
}
- if (lhs_type->Is(Type::Signed32()) && rhs_type->Is(Type::Unsigned32())) {
- NodeProperties::ChangeOp(node, simplified()->NumberToInt32());
- NodeProperties::SetType(node, lhs_type);
- return Changed(node);
- }
}
return NoChange();
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-699282.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698