about summary refs log tree commit diff
path: root/tests/codegen/integer-overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-05 17:41:36 +0000
committerbors <bors@rust-lang.org>2023-11-05 17:41:36 +0000
commit5103173af1948430886534268d8f18b7e8386234 (patch)
tree1fdb4ee5ca5f620af7c32879fe75d16640c27c38 /tests/codegen/integer-overflow.rs
parent6c7de3181b8bf0f0bcb07fbbcf9ce1ae4039283f (diff)
parente501add1f9addf72a30a333ec57ccb4e2ac5a8e4 (diff)
downloadrust-5103173af1948430886534268d8f18b7e8386234.tar.gz
rust-5103173af1948430886534268d8f18b7e8386234.zip
Auto merge of #117179 - Voultapher:fix-useless-comp-in-partition-equal, r=Mark-Simulacrum
Avoid unnecessary comparison in partition_equal

The branchy Hoare partition `partition_equal` as part of `slice::sort_unstable` has a bug that makes it perform a comparison of the last element twice.

Measuring inputs with a Zipfian distribution with characterizing exponent s == 1.0, yields a ~0.05% reduction in the total number of comparisons performed.
Diffstat (limited to 'tests/codegen/integer-overflow.rs')
0 files changed, 0 insertions, 0 deletions