about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-24 04:40:02 +0100
committerGitHub <noreply@github.com>2019-12-24 04:40:02 +0100
commit20d5df91f460196c5720b22afbd0c07bd5bcf22b (patch)
tree143d6204474c0150d47fe7a97f848cfe13c838b9 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent75b27ef59cd0eb95b50d0cde14b05e0079b3ebe9 (diff)
parentdf4d490038c37e441065890fa27ed2ce0bdf83e6 (diff)
downloadrust-20d5df91f460196c5720b22afbd0c07bd5bcf22b.tar.gz
rust-20d5df91f460196c5720b22afbd0c07bd5bcf22b.zip
Rollup merge of #67569 - Mark-Simulacrum:opt-char-encode, r=oli-obk
Clean up unsafety in char::encode_utf8

This originally started as an attempt to allow LLVM to optimize through
encode_utf8 to detect the try_encode_utf8 case (#52579, #52580), but due to a
typo my conclusion that my optimizations were successful was incorrect.

Furthermore, as far as I can tell, this optimization is probably just not
possible with LLVM today.  This [code](https://rust.godbolt.org/z/JggRj4)
compiles down to a long series of compares, notably, two identical series of
compares. That essentially means that LLVM is today unable to see that these two
ifs are identical and as such can be merged and then realize that no value of
the if condition can result in a call to `please_delete`. As such, for now, we
do not attempt to specifically optimize for that case.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions