This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/87901] New: partial DSE of memset doesn't work for other kind of stores
- 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: Tue, 06 Nov 2018 11:44:18 +0000
- Subject: [Bug tree-optimization/87901] New: partial DSE of memset doesn't work for other kind of stores
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87901
Bug ID: 87901
Summary: partial DSE of memset doesn't work for other kind of
stores
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
When transforming the memsets in tree-ssa/ssa-dse-25.c to = {} and = 0 inits
the DSE pass no longer knows how to trim them.
Similarly for
int i;
void foo ()
{
i = 0;
*((short *)&i + sizeof (int) - sizeof (short)) = 1;
}