fabs not being inlined?

NaN divide at by.zero
Sat Feb 9 15:08:22 UTC 2019


On Friday, 8 February 2019 at 14:47:20 UTC, Guillaume Piolat 
wrote:
> On Thursday, 7 February 2019 at 23:26:20 UTC, NaN wrote:
>>
>> Is there something I need to do to get fabs() inlined?
>
> Alternative: inline by hand
>
> https://godbolt.org/z/DS0XIb
>
> Works since LDC 1.0.0 -O1

This might not be pretty but it coaxes LDC to do abs with a 
single instruction...

https://godbolt.org/z/0aVvSR




More information about the digitalmars-d-ldc mailing list