Conversation
|
(rustbot has picked a reviewer for you, use r? to override) |
compiler-errors
left a comment
There was a problem hiding this comment.
Do we expect people to be calling this intrinsic on i8xN? This seems like a misuse of the intrinsic, or at least for LLVM, since llvm.bswap.* says the element needs an even number of bytes.
|
indeed, what are we actually trying to achieve here? |
|
This mirrors the scalar bswap intrinsic: rust/compiler/rustc_codegen_llvm/src/intrinsic.rs Lines 251 to 260 in a8be6e0 It would be a bit of a pain to special-case i8/u8 vectors in std::simd. |
|
or more precisely, what is the current behavior we're trying to avoid? |
I thought LLVM would handle a no-op, but instead the compiler crashes: |
compiler-errors
left a comment
There was a problem hiding this comment.
I guess r=me if @workingjubilee thinks that this is worthwhile -- the fact that we're special-casing i8 in both the simd and non-simd bswap intrinsics is a tiny bit odd, but I could believe it makes sense with like... macro-generated code or something. Still kinda sus, though.
|
lmao llvm |
|
Both scalar integers and std::simd integer vectors are macro-generated 🙃 No users should be seeing these intrinsics. |
|
To be fair to LLVM, it says very clearly that the intrinsic is only defined when |
yeaaaaah, I guess.
that describes all of std's integer impls, baby! @bors r=compiler-errors |
…er-errors Fix simd_bswap for i8/u8 rust-lang#114156 missed this test case☹️ cc `@workingjubilee`
|
The failed test is tests/ui/lint/must_not_suspend/handled.rs, I don't see any way this PR could affect that. Maybe spurious? |
|
...hm yeah you're right, I misread the logs at-a-glance. Probably is spurious then. @bors r=compiler-errors |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (3be07c1): comparison URL. Overall result: ❌ regressions - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 652.418s -> 653.862s (0.22%) |
|
One possible, marginal regression, nothing to worry about. @rustbot label: +perf-regression-triaged |
#114156 missed this test case☹️
cc @workingjubilee