ldc 0.9.1 released

Robert Clipsham robert at octarineparrot.com
Wed May 27 13:02:48 PDT 2009


bearophile wrote:
>>    * turn GC allocations to allocas if possible
> Phobos1 of DMD too has alloca, so can this optimization be folded in DMD too?

I doubt it, these look like LLVM specific optimisations.

>>    * simplify or remove certain calls to D runtime functions
> What calls?

Looking at the source code (gen/passes/*.cpp):
  * _d_arraysetlengthT
  * _d_arraysetlengthiT
  * _d_array_cast_len
  * _d_array_slice_copy
  * _d_allocmemoryT
  * _d_newarrayT
  * _d_newarrayiT
  * _d_newarrayvT
  * _d_newarraymT
  * _d_newarraymiT
  * _d_newarraymvT
  * _d_allocclass

Are the runtime calls currently optimized. There may be more that I've 
missed, that looks like all of them though.


More information about the Digitalmars-d-announce mailing list