5 ms·
Rust's binary search used to be branchless but due to some issues down in LLVM land, the codegen doesn't issue a `cmov` where it should. https://github.com/rust
by WinLychee 3y ago
Rust's binary search used to be branchless but due to some issues down in LLVM land, the codegen doesn't issue a `cmov` where it should. https://github.com/rust-lang/rust/issues/53823 https://github.com/rust-lang/rust/issues/53823
old branchless version: https://github.com/rust-lang/rust/pull/45333/files https://github.com/rust-lang/rust/pull/45333/files