[wasm] Enable System.Numerics vectors SIMD (#78068)
authorRadek Doulik <radek.doulik@gmail.com>
Mon, 12 Dec 2022 22:21:55 +0000 (23:21 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Dec 2022 22:21:55 +0000 (23:21 +0100)
commitb33aede9f365f9231108c2d9f26ad8955c4e36a1
tree98c7d62cbeed75951b6a90cecd321cc74b52b799
parentfdd1f635234dc33f71e2e16d208fe5c08b4147e6
[wasm] Enable System.Numerics vectors SIMD (#78068)

This helps in cases where there's only S.N.Vector path in the BCL code, like `SpanHelpers.IndexOfChar(ref char searchSpace, char value, int length)`. In this case the `Span:IndexOf char` measurement improves from 0.0143ms to 0.0114ms.

* [wasm] Enable System.Numerics vectors SIMD

* Do not hardcode S.N.Vector IsHardwareAccelerated
src/mono/System.Private.CoreLib/src/ILLink/ILLink.Substitutions.wasm.xml
src/mono/mono/mini/simd-intrinsics.c