ldc-developers/ldc — pull request #532 by klickverbot (2013-10-27 15:59:50+00:00)
Title: gc2stack: Cleanup, handle _d_allocmemory.

This allows us to clean up allocations left behind by inlined closures, such as in this example by @bearophile: http://forum.dlang.org/post/zeymcmreuydccqzxterw@forum.dlang.org

We really need a test suite for this pass that verifies that we are actually optimizing allocations away in real code, e.g. by using grep/FileCheck on the assembly output.

Also, this commit introduces another potential alignment issue, see #531.