Branch Annotation #181
TobiasKarnat
started this conversation in
Ideas
Replies: 2 comments
-
Don't think those macros will be useful unless compiler gets updated for the branch optimizer taking care of it. Anyway, implementing as empty macros, could increase the ability to compile GCC code in OW. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I did mean of cause that the branch optimizer needs to be updated for these macros. Would this be a lot of work? -ob already does branch prediction, I just would like to overrule OW sometimes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Macros like likely()/unlikely() would be nice to have to tell OW whether a conditional statement is likely to be true or false.
https://madalanarayana.wordpress.com/2013/08/29/__builtin_expect-a-must-for-stack-developers/
Beta Was this translation helpful? Give feedback.
All reactions