Commit e56d4b92 authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

[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
parent 6ff255ea
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment