This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/16427] dead memset not optimized away
- 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: Wed, 9 Mar 2011 14:56:38 +0000
- Subject: [Bug tree-optimization/16427] dead memset not optimized away
- Auto-submitted: auto-generated
- References: <bug-16427-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16427
--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-09 14:56:26 UTC ---
Related to this is
struct X { int i; int j; int k; };
void foo (void)
{
struct X a, b;
__builtin_memcpy (&a, &b, 4);
}
where we are unable to DCE the memcpy call.
Both issues should be tackled at tree DCE level by better handling of
aliased (local) variables. Needs the same infrastructure changes as
PR41490.