Moved from rust-lang/rust#20579.
Branch prediction intrinsic equivalent to GCC’s __builtin_expect should exist. These correspond to the llvm.expect intrinsics. Alternatively two rust intrinsics likely and unlikely could be implemented.
See rust-lang/rust#17317, rust-lang/rust#22805 and rust-lang/rust#22883 as well.
Moved from rust-lang/rust#20579.
Branch prediction intrinsic equivalent to GCC’s __builtin_expect should exist. These correspond to the
llvm.expectintrinsics. Alternatively two rust intrinsicslikelyandunlikelycould be implemented.See rust-lang/rust#17317, rust-lang/rust#22805 and rust-lang/rust#22883 as well.