Looking for more library optimization patterns

Kai Nacke kai at redstar.de
Wed Jan 29 21:58:02 PST 2014


Hi all!

LDC includes the SimplifyDRuntimeCalls pass which should replace 
D library calls with more efficient ones. This is a clone of a 
former LLVM pass which did the same for C runtime calls.

An example is that printf("foo\n") is replaced by puts("foo").

Do you know of similar patterns in D which are worth to be 
implemented?
E.g. replacing std.stdio.writefln("foo") with 
std.stdio.writeln("foo")

Regards,
Kai


More information about the digitalmars-d-ldc mailing list