Commit 1ee71aa2 authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Fix bug in CheckTaggedSigned lowering.

TBR=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2087803005
Cr-Commit-Position: refs/heads/master@{#37186}
parent 485e7751
...@@ -695,6 +695,7 @@ class RepresentationSelector { ...@@ -695,6 +695,7 @@ class RepresentationSelector {
// In the change phase, insert a change before the use if necessary. // In the change phase, insert a change before the use if necessary.
if (use.representation() == MachineRepresentation::kNone) if (use.representation() == MachineRepresentation::kNone)
return; // No input requirement on the use. return; // No input requirement on the use.
DCHECK_NOT_NULL(input);
NodeInfo* input_info = GetInfo(input); NodeInfo* input_info = GetInfo(input);
MachineRepresentation input_rep = input_info->representation(); MachineRepresentation input_rep = input_info->representation();
if (input_rep != use.representation() || if (input_rep != use.representation() ||
...@@ -1678,7 +1679,7 @@ class RepresentationSelector { ...@@ -1678,7 +1679,7 @@ class RepresentationSelector {
// TODO(jarin,bmeurer): Add CheckedSignedSmallAsWord32? // TODO(jarin,bmeurer): Add CheckedSignedSmallAsWord32?
VisitUnop(node, UseInfo::CheckedSigned32AsWord32(), VisitUnop(node, UseInfo::CheckedSigned32AsWord32(),
MachineRepresentation::kWord32); MachineRepresentation::kWord32);
DeferReplacement(node, node->InputAt(0)); if (lower()) DeferReplacement(node, node->InputAt(0));
} else { } else {
VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged); VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged);
if (lower()) { if (lower()) {
......
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