-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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_fpow
and simd_fpowi
intrinsics are not exposed in intrinsics::simd
#137555
Comments
As far as I can see, neither stdarch nor portable-simd use these intrinsics. So... should we just remove them? Or is there a reason for them to exist? |
None of the targets/instruction sets I could think of seem to do anything smart https://godbolt.org/z/KP1K66nhP they just seem to spill to the stack and use the standard scalar |
then I'm pro-yeet, assuming there isn't something special I don't remember |
Odd that they don't do much at all. Seems ok to remove them to me, we can re-add (working) intrinsics if we try to expose a function that needs it |
@folkertdev are you planning to make a PR that removes them? :) |
Yes |
I opened #137595 |
…=RalfJung remove `simd_fpow` and `simd_fpowi` Discussed in rust-lang#137555 These functions are not exposed from `std::intrinsics::simd`, and not used anywhere outside of the compiler. They also don't lower to particularly good code at least on the major ISAs (I checked x86_64, aarch64, s390x, powerpc), where the vector is just spilled to the stack and scalar functions are used for the actual logic. r? `@RalfJung`
Rollup merge of rust-lang#137595 - folkertdev:remove-simd-pow-powi, r=RalfJung remove `simd_fpow` and `simd_fpowi` Discussed in rust-lang#137555 These functions are not exposed from `std::intrinsics::simd`, and not used anywhere outside of the compiler. They also don't lower to particularly good code at least on the major ISAs (I checked x86_64, aarch64, s390x, powerpc), where the vector is just spilled to the stack and scalar functions are used for the actual logic. r? `@RalfJung`
remove `simd_fpow` and `simd_fpowi` Discussed in rust-lang/rust#137555 These functions are not exposed from `std::intrinsics::simd`, and not used anywhere outside of the compiler. They also don't lower to particularly good code at least on the major ISAs (I checked x86_64, aarch64, s390x, powerpc), where the vector is just spilled to the stack and scalar functions are used for the actual logic. r? `@RalfJung`
As a result, to test/use these intrinsics they must be redeclared outside of
core
, which is at best inelegant and at worst could lead to subtle bugs.I think there are two options:
cc @calebzulawski it looks like you touched this last 5 years ago 07db2bf. Long time, but maybe you remember something?
@rustbot label +A-simd +F-core_intrinsics
The text was updated successfully, but these errors were encountered: