This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50824] memset or memcpy on structure prevents SRA
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 23 Oct 2011 10:57:29 +0000
- Subject: [Bug tree-optimization/50824] memset or memcpy on structure prevents SRA
- Auto-submitted: auto-generated
- References: <bug-50824-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50824
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011-10-23
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-23 10:57:29 UTC ---
No, I think because it counts as address-taken, not because it escapes.
Do you have a testcase? Most memcpys should be folded to a plain assignment
already, but we don't fold memset to zero to = {} I guess.