From e56d4b92cd1a701bbff74b7241eb0e838bbddbb9 Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Tue, 4 Nov 2014 12:06:23 +0000 Subject: [PATCH] [turbofan] Fix branch hints for ChangeInt32ToTagged and ChangeTaggedToUI32. R=titzer@chromium.org Review URL: https://codereview.chromium.org/694353006 Cr-Commit-Position: refs/heads/master@{#25106} git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25106 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/compiler/change-lowering.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/change-lowering.cc b/src/compiler/change-lowering.cc index 0b4a39952a..f2968db78c 100644 --- a/src/compiler/change-lowering.cc +++ b/src/compiler/change-lowering.cc @@ -143,7 +143,7 @@ Reduction ChangeLowering::ChangeInt32ToTagged(Node* val, Node* control) { Node* ovf = graph()->NewNode(common()->Projection(1), add); Node* branch = - graph()->NewNode(common()->Branch(BranchHint::kTrue), ovf, control); + graph()->NewNode(common()->Branch(BranchHint::kFalse), ovf, control); Node* if_true = graph()->NewNode(common()->IfTrue(), branch); Node* heap_number = AllocateHeapNumberWithValue( @@ -167,7 +167,8 @@ Reduction ChangeLowering::ChangeTaggedToUI32(Node* val, Node* control, Node* tag = graph()->NewNode(machine()->WordAnd(), val, jsgraph()->IntPtrConstant(kSmiTagMask)); - Node* branch = graph()->NewNode(common()->Branch(), tag, control); + Node* branch = + graph()->NewNode(common()->Branch(BranchHint::kFalse), tag, control); Node* if_true = graph()->NewNode(common()->IfTrue(), branch); const Operator* op = (signedness == kSigned)