1
Fork 0
rust/compiler/rustc_span/src
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
..
analyze_source_file Be more accurate about calculating display_col from a BytePos 2024-07-18 20:08:38 +00:00
edit_distance Add test for precise algorithm used 2023-02-19 22:59:22 +00:00
source_map Be more accurate about calculating display_col from a BytePos 2024-07-18 20:08:38 +00:00
symbol Reformat use declarations. 2024-07-29 08:26:52 +10:00
analyze_source_file.rs Be more accurate about calculating display_col from a BytePos 2024-07-18 20:08:38 +00:00
caching_source_map_view.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
def_id.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
edit_distance.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
edition.rs Remove extern crate rustc_macros from numerous crates. 2024-04-29 10:21:54 +10:00
fatal_error.rs Auto merge of #117557 - Zoxc:panic-prio, r=petrochenkov 2023-11-09 00:39:02 +00:00
hygiene.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
lib.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
profiling.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
source_map.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
span_encoding.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
symbol.rs Auto merge of #128250 - Amanieu:select_unpredictable, r=nikic 2024-07-30 03:22:27 +00:00
tests.rs Add Span::trim_end 2024-06-04 13:11:45 +10:00