linebender / linebender/fearless_simd
Snapshot tests for the assembly output
@ajakubowicz-canva is already working on this.
Since Oct 5, 2025.
- Dominant language
- Rust
- Stars
- 457
- Forks
- 30
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 25
Description
Context: #simd > Is there an Array copy cost? @ 💬
Since fearless_simd is trying to be extremely performant, this issue is a proposal for assembly snapshot tests.
A common approach to debugging performance with fearless_simd is to compile out some function and check that it's been appropriately optimized. My proposal is to lightly automate this with "goldens". We create a corpus of no_mangle SIMD functions that we compile out to various optimized backends. The output is then stored in a golden and compared.
Thus, we can manually validate how the Rust compiler and LLVM optimizes fearless_simd code. Any changes in compilation or code that modify the assembly would be caught.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.