wrapping llvm_expect in a likely(x)/unlikely(x)?

rsw0x via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Wed Oct 28 23:28:34 PDT 2015


Is this possible?
I already do it for GDC with a function wrapper, but LDC doesn't 
seem to work the same way. It generates the expected code if I 
manually used llvm_expect(T,V) but not if I wrap it in a 
convenience likely/unlikely function.


More information about the digitalmars-d-ldc mailing list