Closed Bug 1139501 Opened 9 years ago Closed 6 years ago

SIMD: optimize SIMD.float32.{min,max}{,Num} with one constant operand

Categories

(Core :: JavaScript Engine: JIT, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bbouvier, Assigned: sajjadt)

References

Details

When we have SIMD.float32x4.min/max/minNum/maxNum and one of the operands is a SIMD constant, we can try some optimization, with respect to the content of the SIMD constant:

- if there's a NaN in any lane, there's nothing we can do.
- if the operation is min and there's no 0 in any lane, we can emit a single minps. I think that if we swap operands to make sure the constant is at a given position, we can even optimize the case with -0...
- if the operation is max and there's no 0 in any lane, we can emit a single maxps.

I'll take care of it, unless somebody beats me to it.
Flags: needinfo?(benj)
Not on my radar right now, feel free to take.
Flags: needinfo?(benj)
Assignee: nobody → staheri
SIMD.js is being removed.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
See Also: → 1690466
You need to log in before you can comment on or make changes to this bug.