An LLVM bug that affect both LDC and SDC. Worth pushing for

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 16 11:39:16 PDT 2014


On Monday, 16 June 2014 at 16:31:20 UTC, safety0ff wrote:
> On Monday, 16 June 2014 at 06:09:28 UTC, deadalnix wrote:
>> http://llvm.org/bugs/show_bug.cgi?id=20049
>>
>> Basically when you have a closure in a closure and the whole 
>> thing get inlined, LLVM mess up, which result in compiler not 
>> being able to optimize GC allocation away.
>>
>> Probably worth pushing for. It does probably affect other 
>> functional languages as well, but I didn't checked.
>
> This is the corresponding D code: 
> https://github.com/deadalnix/SDC/blob/master/tests/test0156.d
>
> Correct?

Not exactly, but this is the kind of code that will trigger the 
bug.


More information about the Digitalmars-d mailing list