Can we choose branch prediction like GCC?

rempas rempas at tutanota.com
Wed May 11 05:20:01 UTC 2022


On Tuesday, 10 May 2022 at 22:34:23 UTC, kinke wrote:
> As with gcc's __builtin_expect, one normally uses it in an if 
> condition: `if (llvm_expect(x < 10, false)) …`.

Oh, how I didn't thought about trying this out....

Thank you! This will do the trick! Have an amazing day my friend!


More information about the digitalmars-d-ldc mailing list