1
Fork 0
rust/compiler/rustc_hir_analysis/src/check
bors 710ce90fbe 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`.
2024-07-30 03:22:27 +00:00
..
compare_impl_item Reformat use declarations. 2024-07-29 08:26:52 +10:00
check.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
compare_impl_item.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
dropck.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
entry.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
errs.rs Use more accurate span for addr_of! suggestion 2024-07-18 18:39:20 +00:00
intrinsic.rs Auto merge of #128250 - Amanieu:select_unpredictable, r=nikic 2024-07-30 03:22:27 +00:00
intrinsicck.rs Rollup merge of #126417 - beetrees:f16-f128-inline-asm-x86, r=Amanieu 2024-06-15 14:40:48 +02:00
mod.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
region.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
wfcheck.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00