Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement branch prediction intrinsics #918

Closed
nagisa opened this issue Feb 28, 2015 · 4 comments
Closed

Implement branch prediction intrinsics #918

nagisa opened this issue Feb 28, 2015 · 4 comments

Comments

@nagisa
Copy link
Member

nagisa commented Feb 28, 2015

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.

@Stebalien
Copy link
Contributor

Triage: Fixed by #1131

@qguv
Copy link

qguv commented Dec 14, 2017

It looks like this was put on hold waiting for MIR. Has there been any progress now that MIR has landed?

@sinkuu
Copy link
Contributor

sinkuu commented Dec 14, 2017

RFC 1131 is already implemented and waiting for stabilization, right?

@qguv
Copy link

qguv commented Dec 15, 2017

That's what I was looking for. Thanks @sinkuu!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants