about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorokaneco <47607823+okaneco@users.noreply.github.com>2023-10-26 20:23:56 -0400
committerokaneco <47607823+okaneco@users.noreply.github.com>2023-10-26 21:48:36 -0400
commit465ffc9ca781af9ac0a89643c9971ac807da5766 (patch)
tree4de6c72d8584d65aa4d27c02c900f3251bca64e5 /compiler/rustc_codegen_llvm/src
parent8396efecf7d30ca9f7edcf76aba2ea388300f6ab (diff)
downloadrust-465ffc9ca781af9ac0a89643c9971ac807da5766.tar.gz
rust-465ffc9ca781af9ac0a89643c9971ac807da5766.zip
Refactor some `char`, `u8` ascii functions to be branchless
Decompose singular `matches!` with or-patterns to individual `matches!`
statements to enable branchless code output. The following functions
were changed:
- `is_ascii_alphanumeric`
- `is_ascii_hexdigit`
- `is_ascii_punctuation`

Add codegen tests

Co-authored-by: George Bateman <george.bateman16@gmail.com>
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions