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

Unified Diff: src/compiler/machine-operator-reducer.cc

Issue 699573002: [turbofan] Positive dividends are heavily favored for Int32Mod. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/machine-operator-reducer.cc
diff --git a/src/compiler/machine-operator-reducer.cc b/src/compiler/machine-operator-reducer.cc
index 1f73262f95f63a6a25cee83bcbe2d355c3bb58b2..836ddd146483d4702aa7c2bfb76b158bbf504a5f 100644
--- a/src/compiler/machine-operator-reducer.cc
+++ b/src/compiler/machine-operator-reducer.cc
@@ -654,8 +654,8 @@ Reduction MachineOperatorReducer::ReduceInt32Mod(Node* node) {
Node* check =
graph()->NewNode(machine()->Int32LessThan(), dividend, zero);
- Node* branch =
- graph()->NewNode(common()->Branch(), check, graph()->start());
+ Node* branch = graph()->NewNode(common()->Branch(BranchHint::kFalse),
+ check, graph()->start());
Node* if_true = graph()->NewNode(common()->IfTrue(), branch);
Node* neg = Int32Sub(zero, Word32And(Int32Sub(zero, dividend), mask));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698