Skip to content

Implement branch prediction intrinsics #918

Closed
@nagisa

Description

@nagisa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions