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; }