[Issue 2356] array literal as non static initializer generates horribly inefficient code.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 10 19:44:41 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=2356
--- Comment #17 from bearophile_hugs at eml.cc 2013-04-10 19:44:37 PDT ---
(In reply to comment #16)
> It is lowered to:
> int[3] y = void;
> y[] = n;
>
> And currently dmd uses memset for `y[] = n;`. It is another optimization issue.
OK.
> Before, cpctor(==postblit) calls are done in __d_arrayliteralTX, so they are
> hidden. Now they are directly called on the stack memory z[0..3].
Sorry I have missed it was the postblit, thank you.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list