#llvm #workaround #bad #boolean #codegen #arm #32-bit

nightly any_all_workaround

Workaround for bad LLVM codegen for boolean reductions on 32-bit ARM

1 unstable release

0.1.0 Apr 9, 2024

#1033 in Programming languages

Download history 263/week @ 2024-10-23 262/week @ 2024-10-30 77/week @ 2024-11-06 118/week @ 2024-11-13 73/week @ 2024-11-20 74/week @ 2024-11-27 112/week @ 2024-12-04 85/week @ 2024-12-11 40/week @ 2024-12-18 9/week @ 2024-12-25 23/week @ 2025-01-01 44/week @ 2025-01-08 79/week @ 2025-01-15 53/week @ 2025-01-22 72/week @ 2025-01-29 66/week @ 2025-02-05

277 downloads per month
Used in 3 crates (via encoding_rs)

MIT/Apache

7KB
91 lines

any_all_workaround

This is a workaround for bad codegen (Rust bug, LLVM bug) for the any() and all() reductions for NEON-backed SIMD vectors on 32-bit ARM. On other platforms these delegate to any() and all() in core::simd.

The plan is to abandon this crate once the LLVM bug is fixed or core::simd works around the LLVM bug.

The code is forked from the packed_simd crate.

This crate requires Nightly Rust as it depends on the portable_simd feature.

License

MIT OR Apache-2.0, since that's how packed_simd is licensed.

Dependencies

~4KB