Open Bug 1752504 Opened 3 years ago Updated 2 years ago

Fold unary/binary MIR operations involving NaN

Categories

(Core :: JavaScript Engine: JIT, task, P3)

task

Tracking

()

People

(Reporter: jandem, Unassigned)

References

(Blocks 1 open bug)

Details

In bug 1752281 we're adding CacheIR support for optimizing things like number + undefined to number + NaN.

It would be nice if Warp could then fold arithmetic operations where one side is MConstant(NaN) to NaN.

Note: we need to be careful with JSOp::Pow because NaN ** 0 => 1.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.