-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
JIT, SIMD Intrinsics: Recognize ~A & B
as VectorXxx.AndNot(B, A)
#78303
Comments
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsI love the new SIMD intrinsic surface area you guys have released with .NET 7, and would like to propose this improvement to JIT pattern recognition. Although micro-benchmarks don't reveal any performance improvement on my CPU to use the For reference, my CPU is a Ryzen 2700.
|
A good place for this reduction would be in morph, |
Co-authored-by: EgorBo <[email protected]>
Closed by #81993 |
I love the new SIMD intrinsic surface area you guys have released with .NET 7, and would like to propose this improvement to JIT pattern recognition.
Although micro-benchmarks don't reveal any performance improvement on my CPU to use the
AndNot()
intrinsic over~A & B
, it does to my knowledge result in 1 or more fewer instructions and thus benefits code size.For reference, my CPU is a Ryzen 2700.
The text was updated successfully, but these errors were encountered: