diff options
| author | Lukas Bergdoll <lukas.bergdoll@gmail.com> | 2024-11-03 18:34:45 +0100 |
|---|---|---|
| committer | Lukas Bergdoll <lukas.bergdoll@gmail.com> | 2025-02-07 15:22:42 +0100 |
| commit | 4c9b9d7258773d6d0aac6711ba350d9395120e32 (patch) | |
| tree | 2bce99d7b5cc800cec176cca567ecb210d1aa969 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 5ff18d0eaefd1bd9ab8ec33dab2404a44e7631ed (diff) | |
| download | rust-4c9b9d7258773d6d0aac6711ba350d9395120e32.tar.gz rust-4c9b9d7258773d6d0aac6711ba350d9395120e32.zip | |
Use more explicit and reliable ptr select in sort impls
Using if ... with the intent to avoid branches can be surprising to readers and carries the risk of turning into jumps/branches generated by some future compiler version, breaking crucial optimizations. This commit replaces their usage with the explicit and IR annotated `bool::select_unpredictable`.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
