about summary refs log tree commit diff
path: root/src/llvm-project
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-30 03:22:27 +0000
committerbors <bors@rust-lang.org>2024-07-30 03:22:27 +0000
commit710ce90fbe5a4c801fa10e40d1f0bfdaee9e340b (patch)
tree299d59815b99833ba5c7f821c62b13f9eaba84d7 /src/llvm-project
parentdba8e2d2c2890a8b9e88cbf4855ac5711337946c (diff)
parent4f78f9fbb05145d437540181fda9bcc83d5a53e4 (diff)
downloadrust-710ce90fbe5a4c801fa10e40d1f0bfdaee9e340b.tar.gz
rust-710ce90fbe5a4c801fa10e40d1f0bfdaee9e340b.zip
Auto merge of #128250 - Amanieu:select_unpredictable, r=nikic
Add `select_unpredictable` to force LLVM to use CMOV

Since https://reviews.llvm.org/D118118, LLVM will no longer turn CMOVs into branches if it comes from a `select` marked with an `unpredictable` metadata attribute.

This PR introduces `core::intrinsics::select_unpredictable` which emits such a `select` and uses it in the implementation of `binary_search_by`.
Diffstat (limited to 'src/llvm-project')
0 files changed, 0 insertions, 0 deletions