diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-12 14:21:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-12 14:21:05 +0100 |
| commit | 79ebf53cbb659175e863cdc4ca6341ee934376fd (patch) | |
| tree | e7323c3be168e687fe658ed3c8c6b0f6353588b3 /src/test/debuginfo/enum-thinlto.rs | |
| parent | cd5441faf4e56d136d7c05d5eb55b4a41396edaf (diff) | |
| parent | 4e7aeaf1b52ee66ede1adb104fcd08b0463eb0f9 (diff) | |
| download | rust-79ebf53cbb659175e863cdc4ca6341ee934376fd.tar.gz rust-79ebf53cbb659175e863cdc4ca6341ee934376fd.zip | |
Rollup merge of #67585 - ranma42:fix/char-is-ascii-codegen, r=Amanieu
Improve `char::is_ascii_*` codegen This PR is an attempt to fix https://github.com/rust-lang/rust/issues/65127 A couple of warnings: 1. the generated code might be further improved (in LLVM and/or MIR) by emitting better comparison sequences; in particular, this would improve the performance of "complex" checks such as those in `is_ascii_punctuation` 2. the second commit is currently marked "DO NOT MERGE", because it regresses SIMD on `u8` slices; this could likely be fixed by improving the computation/usage of demanded bits in LLVM An alternative approach to remove the code duplication might be the use of macros, but currently most of the duplication is actually in the doc comments, so maybe just keeping the redundancy could be ok
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
