Closed
Bug 1316824
Opened 8 years ago
Closed 3 years ago
Wasm baseline: Avoid SNaN -> QNaN conversion for constant arguments to Min and Max
Categories
(Core :: JavaScript: WebAssembly, enhancement, P5)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: lth, Unassigned, Mentored)
References
Details
Attachments
(1 file)
3.79 KB,
patch
|
Details | Diff | Splinter Review |
In emit{Min,Max}F{32,64}() we unconditionally convert arguments from signaling NaN to quiet NaN by adding 0.0. It is silly to do this for constant values, so we should definitely avoid that, and that is especially true since Min and Max often will be applied to one constant argument. It is interesting to consider whether there is a simple way to know that a value cannot be a signaling NaN. For example, off the top of my head I would say that the result of an arithmetic operation can't be signaling. It does not look like it's worthwhile to go down the more complex path here, since the fixup is relatively cheap (clear a register and subtract, and we hope the FPU optimizes that path.) Still, worth remembering.
Reporter | ||
Updated•8 years ago
|
Mentor: lhansen
Reporter | ||
Comment 1•8 years ago
|
||
Something like this, but for the other three cases as well, and with test cases.
Reporter | ||
Comment 2•8 years ago
|
||
Micro-optimizations in straight-line code without emipirical support are P5.
Priority: P3 → P5
Comment 3•6 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
Updated•6 years ago
|
Status: RESOLVED → REOPENED
Resolution: INACTIVE → ---
Reporter | ||
Updated•6 years ago
|
Component: JavaScript Engine: JIT → Javascript: Web Assembly
Reporter | ||
Updated•5 years ago
|
Type: defect → enhancement
Reporter | ||
Updated•3 years ago
|
Status: REOPENED → RESOLVED
Closed: 6 years ago → 3 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•