Rollup merge of #136690 - Voultapher:use-more-explicit-and-reliable-ptr-select, r=thomcc

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`.
This commit is contained in:
Matthias Krüger 2025-02-19 21:16:09 +01:00 committed by GitHub
commit d7f562fab0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available