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:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-03-21 18:01:50 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2020-03-21 18:01:50 -0400
commitaf243d4d91400e071a5b8fe5041f55f07fd8a928 (patch)
tree102c4febd72514917382c580a0c4f06082ff0d36 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parenta7ec6f8fe0fb10fa91ac40f68beccd2675cba50c (diff)
downloadrust-af243d4d91400e071a5b8fe5041f55f07fd8a928.tar.gz
rust-af243d4d91400e071a5b8fe5041f55f07fd8a928.zip
Avoid relying on const parameters to function
LLVM seems to at least sometimes optimize better when the length comes directly
from the `len()` of the array vs. an equivalent integer.

Also, this allows easier copy/pasting of the function into compiler explorer for
experimentation.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions