October 29, 2015 wrapping llvm_expect in a likely(x)/unlikely(x)? | ||||
---|---|---|---|---|
| ||||
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. |
October 31, 2015 Re: wrapping llvm_expect in a likely(x)/unlikely(x)? | ||||
---|---|---|---|---|
| ||||
Posted in reply to rsw0x | On Thursday, 29 October 2015 at 06:28:36 UTC, rsw0x wrote:
> 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.
I feel silly now, all I needed was default parameters - doh.
Sorry for the noise.
|
Copyright © 1999-2021 by the D Language Foundation