diff options
| author | okaneco <47607823+okaneco@users.noreply.github.com> | 2023-10-26 20:23:56 -0400 |
|---|---|---|
| committer | okaneco <47607823+okaneco@users.noreply.github.com> | 2023-10-26 21:48:36 -0400 |
| commit | 465ffc9ca781af9ac0a89643c9971ac807da5766 (patch) | |
| tree | 4de6c72d8584d65aa4d27c02c900f3251bca64e5 /compiler/rustc_codegen_llvm/src | |
| parent | 8396efecf7d30ca9f7edcf76aba2ea388300f6ab (diff) | |
| download | rust-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
