[Bug c/78408] C loop initial declarations generate wrong code
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 18 17:04:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78408
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note in the testcase a = (struct buf) {}, b = (struct buf) {} generates
significantly more efficient code than a = b = (struct buf) {} - the former
is 2x memset, the latter 1x memset + 1x memcpy.
So, shall we for large aggregates gimplify those differently as an
optimization?
More information about the Gcc-bugs
mailing list