Can we choose branch prediction like GCC?

rempas rempas at tutanota.com
Tue May 10 10:02:21 UTC 2022


In GCC, there is a 
[builtin](https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html) 
called "__builtin_expect" that allows us to tell if we expect a 
branch to hit or not so the compiler can choose the branch 
prediction we want (unless I don't understand something 
correctly). Is there a way to do that in LDC?


More information about the digitalmars-d-ldc mailing list