Null check optimization

Jakob Bornecrantz via digitalmars-d-ldc digitalmars-d-ldc at
Sun Dec 13 06:09:42 PST 2015

On Friday, 4 December 2015 at 23:33:01 UTC, deadalnix wrote:
> Hi all,
> I was at the LLVM meetup yesterday and talked with a 
> contributor that use LLVM to run java code. One on the very 
> interesting that came up is a way to use segfault in order to 
> do null cheks. It is explained here:
> I know that ldc generate null checks when calling various 
> functions. It may be a good idea, considering this is 
> unexpected, ot use the same mechanism in LDC.

Very intreresting, once support has been added to the druntime
other backends should be able to do the same optimization.

Cheers, Jakob.

More information about the digitalmars-d-ldc mailing list