diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-04-02 14:29:41 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2022-04-02 14:29:41 -0700 |
| commit | 83595f9242ad9e8a7da091f65d450e44e4434f89 (patch) | |
| tree | 98404a3bad2a0be64721abdd38e705e45b6ab209 /src/test/codegen/src-hash-algorithm | |
| parent | eb82facb1626166188d49599a3313fc95201f556 (diff) | |
| download | rust-83595f9242ad9e8a7da091f65d450e44e4434f89.tar.gz rust-83595f9242ad9e8a7da091f65d450e44e4434f89.zip | |
Fix `array::IntoIter::fold` to use the optimized `Range::fold`
It was using `Iterator::by_ref` in the implementation, which ended up pessimizing it enough that, for example, it didn't vectorize when we tried it in the <https://rust-lang.zulipchat.com/#narrow/stream/257879-project-portable-simd/topic/Reducing.20sum.20into.20wider.20types> conversation. Demonstration that the codegen test doesn't pass on the current nightly: <https://rust.godbolt.org/z/Taxev5eMn>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
