Commit 04c982af authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Properly lower NumberTan to Float64Tan.

TBR=mvstanton@chromium.org
BUG=v8:5086,v8:5126

Review-Url: https://codereview.chromium.org/2080233002
Cr-Commit-Position: refs/heads/master@{#37100}
parent 48a96d17
......@@ -698,6 +698,8 @@ const Operator* RepresentationChanger::Float64OperatorFor(
return machine()->Float64Log10();
case IrOpcode::kNumberSin:
return machine()->Float64Sin();
case IrOpcode::kNumberTan:
return machine()->Float64Tan();
case IrOpcode::kNumberSqrt:
return machine()->Float64Sqrt();
case IrOpcode::kNumberCbrt:
......
......@@ -1539,7 +1539,8 @@ class RepresentationSelector {
case IrOpcode::kNumberLog2:
case IrOpcode::kNumberLog10:
case IrOpcode::kNumberCbrt:
case IrOpcode::kNumberSin: {
case IrOpcode::kNumberSin:
case IrOpcode::kNumberTan: {
VisitUnop(node, UseInfo::TruncatingFloat64(),
MachineRepresentation::kFloat64);
if (lower()) NodeProperties::ChangeOp(node, Float64Op(node));
......
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