-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIMD horizontal adds #65
Comments
From my brief look at this spec, it looks like we'd use But we would still have the trouble of choosing a canonical form that matches well to hardware and for all the runtimes to perform the matching. For instance, the current shuffle approach in LLVM would map to So, I would definitely be in favour of having dedicated wasm instruction(s), for both fixed and flexible! Arm hardware-wise, Neon includes |
We have the There are also pairwise operations, i.e. |
I vaguely remember horizontal ops were not great on x86. @rrwinterton, do you have any thoughts? |
Originally thought to be a post-MVP feature: WebAssembly/simd#20
There is PR to LLVM to introduce shuffle patterns that combined with other instructions would translate to horizontal additions - motivation to restart the conversation on horizontal SIMD ops or at least provide a way to disseminate this among the runtimes.
@sparker-arm as the author of the patch, sorry to put you on the spot.
The text was updated successfully, but these errors were encountered: