Can we choose branch prediction like GCC?

kinke noone at nowhere.com
Tue May 10 22:34:23 UTC 2022


On Tuesday, 10 May 2022 at 20:31:41 UTC, rempas wrote:
> I did tried for about half an hour but couldn't find 
> anything... Any ideas how it works?

As with gcc's __builtin_expect, one normally uses it in an if 
condition: `if (llvm_expect(x < 10, false)) …`.


More information about the digitalmars-d-ldc mailing list