-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
make simd_insert_dyn and simd_extract_dyn const
#151453
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
Conversation
|
Some changes occurred to the platform-builtins intrinsics. Make sure the cc @antoyo, @GuillaumeGomez, @bjorn3, @calebzulawski, @programmerjake Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter |
|
|
This comment has been minimized.
This comment has been minimized.
a53ae7a to
8516904
Compare
|
What about support in Miri? Miri doesn't use fallback bodies automatically, they need to be marked to promise that if there is any UB-checking to do, it will be done. And in fact the implementation here looks like it doesn't do full UB checking, since the implementation will work fine if |
|
At that point all backends have custom implementations, so the fallback body could be dropped? |
8516904 to
b4220ec
Compare
|
If that's the case then yeah, it can be dropped. |
|
Looks great, thanks! |
|
✌️ @folkertdev, you can now approve this pull request! If @RalfJung told you to " |
|
@bors r=RalfJung rollup |
…uwer Rollup of 6 pull requests Successful merges: - #147426 ( tests/debuginfo/basic-stepping.rs: Add revisions `default-mir-passes`, `no-SingleUseConsts-mir-pass`) - #150880 (Remove old error emitter) - #151432 (use `deny(missing_docs)` for non-mir intrinsics) - #151444 (Move UI tests) - #151445 (Derive `Default` for `QueryArenas`) - #151453 (make `simd_insert_dyn` and `simd_extract_dyn` const) r? @ghost
Rollup merge of #151453 - folkertdev:simd-dyn-const, r=RalfJung make `simd_insert_dyn` and `simd_extract_dyn` const For use in `stdarch`. We currently use an equivalent of the fallback body here, but on some targets the intrinsic generate better code. r? RalfJung
For use in
stdarch. We currently use an equivalent of the fallback body here, but on some targets the intrinsic generate better code.r? RalfJung