Closed Bug 1724201 Opened 3 years ago Closed 3 years ago

Prototype relaxed-SIMD FMA and FMS

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: lth, Assigned: lth)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Prototype - only f32x4.fma, only baseline, no wat support. But works
on both x64/x86 and arm64.

The "experimental" feature is no longer defined and this predicate can
just go away - it should have been removed with the feature.

For FMA and FMS we will need a ternary node, and bitselect already has
the right shape and logic. We just need to rename it and generalize
it slightly with the SIMD op as a parameter, as we have for many other
nodes.

Drive-by fix: bitselect on arm64 does not actually need a temp
register.

Depends on D122079

Attachment #9234888 - Attachment description: WIP: Bug 1724201 - Relaxed SIMD FMA/FMS. → Bug 1724201 - Relaxed SIMD FMA/FMS for x86 and arm64. r?yury
Pushed by lhansen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/762eaa3d8d19
Drive-by cleanup, remove some dead code. r=yury
https://hg.mozilla.org/integration/autoland/rev/4736a84c2dbb
Repurpose the vector bitselect node as a general ternary op node. r=yury
https://hg.mozilla.org/integration/autoland/rev/ba0bb80adf91
Relaxed SIMD FMA/FMS for x86 and arm64.  r=yury

That's extremely weird, because it builds fine locally. Treeherder shows that the non-unified build works, so this may be some badness with header files. Investigating...

Flags: needinfo?(lhansen)

YAYO (Yet Another YAML Oversight). Probably one more argument why config phrases that drive codegen should be embedded in the code, not in a separate file.

Pushed by lhansen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cbd6016b8501
Drive-by cleanup, remove some dead code. r=yury
https://hg.mozilla.org/integration/autoland/rev/95c7858db7b5
Repurpose the vector bitselect node as a general ternary op node. r=yury
https://hg.mozilla.org/integration/autoland/rev/3cf25ec47e91
Relaxed SIMD FMA/FMS for x86 and arm64.  r=yury
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Blocks: 1731852
Blocks: 1731853
No longer blocks: 1731853
No longer blocks: 1731852
Blocks: 1732996
No longer blocks: 1732996
Depends on: 1732996
Blocks: 1798970
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: