Use SIMD intrinsics for vector shifts - #1955
Conversation
|
r? @folkertdev rustbot has assigned @folkertdev. Use |
|
|
|
Ah, so I need to add a |
|
It looks like adding that one edit: https://godbolt.org/z/99zrnb5Gj edit2: somehow using |
|
https://godbolt.org/z/cafKWsf6x I think these should do the job, @eduardosm could you check please? edit: seems to pass miri on overflow playground |
67db9b3 to
a299d29
Compare
That looks good to me 👍🏻 |
a299d29 to
102f03d
Compare
|
Thanks @eduardosm :love:, then it should be good to merge |
|
I think this may have to be reverted, it doesn't codegen the way these intrinsics should: rust-lang/rust#159831 |
Retrying #1928, this time actually checking for overflow. LLVM sees through this, and eliminates the branch/selects https://godbolt.org/z/WsYvfjPas
cc @RalfJung this also removes uses of a few intrinsics from avx2