This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50824] New: memset or memcpy on structure prevents SRA
- From: "andi-gcc at firstfloor dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 21 Oct 2011 15:25:21 +0000
- Subject: [Bug tree-optimization/50824] New: memset or memcpy on structure prevents SRA
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50824
Bug #: 50824
Summary: memset or memcpy on structure prevents SRA
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: andi-gcc@firstfloor.org
Clearing a structure using memset or copying it using memcpy currently
disables SRA for the structure because it counts as escaping.
Since this is common it would be better
if it was handled. Clearing it using an initializer or copying it with
= already works, so those could be handled the same way.