about summary refs log tree commit diff
path: root/compiler/rustc_incremental/src/errors.rs
diff options
context:
space:
mode:
authorokaneco <47607823+okaneco@users.noreply.github.com>2024-09-26 19:39:14 -0400
committerokaneco <47607823+okaneco@users.noreply.github.com>2024-11-06 02:22:00 -0500
commit1b5c02b7578879ebfcd54fdc6a4f86c49d2d9ecd (patch)
tree773c8aa893974704989785a470d9f60a2326da8e /compiler/rustc_incremental/src/errors.rs
parentd7d67ad14b7c69325a3377bea83b9919398f9588 (diff)
downloadrust-1b5c02b7578879ebfcd54fdc6a4f86c49d2d9ecd.tar.gz
rust-1b5c02b7578879ebfcd54fdc6a4f86c49d2d9ecd.zip
Add `is_ascii` function optimized for x86-64 for [u8]
The new `is_ascii` function is optimized to use the
`pmovmskb` vector instruction which tests the high bit in a lane.
This corresponds to the same check of whether a byte is ASCII so
ASCII validity checking can be vectorized. This instruction
does not exist on other platforms so it is likely to regress performance
and is gated to all(target_arch = "x86_64", target_feature = "sse2").

Add codegen test
Remove crate::mem import for functions included in the prelude
Diffstat (limited to 'compiler/rustc_incremental/src/errors.rs')
0 files changed, 0 insertions, 0 deletions