D-Programming-Language/dmd — pull request #1883 by 9rnsr (2013-04-10 17:01:29+00:00)
Title: Issue 2356 - array literal as non static initializer generates horribly inefficient code.

http://d.puremagic.com/issues/show_bug.cgi?id=2356

In static array initializing and assignment, removes redundant heap allocation of the array literal. If element values are contiguous, translates it to block assignment.