re PR middle-end/61912 (Missed (partial) dead store elimination for structures on...
authorJeff Law <law@redhat.com>
Fri, 13 Jan 2017 15:46:22 +0000 (08:46 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 13 Jan 2017 15:46:22 +0000 (08:46 -0700)
commit9e59e99a6016420f36eb3a2a8a7912c58ef99a17
tree9f6f6ea0036d61c5d838b447db3b895284ec705a
parentd155c6fef06cba08d6ed48b90092c70fa69f8c79
re PR middle-end/61912 (Missed (partial) dead store elimination for structures on GIMPLE)

PR tree-optimization/61912
PR tree-optimization/77485
* tree-ssa-dse.c: Include expr.h.
(maybe_trim_constructor_store): New function.
(maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.

PR tree-optimization/61912
PR tree-optimization/77485
* g++.dg/tree-ssa/ssa-dse-1.C: New test.
* gcc.dg/tree-ssa/pr30375: Adjust expected output.
* gcc.dg/tree-ssa/ssa-dse-24.c: New test.

From-SVN: r244443
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/ssa-dse-1.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr30375.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-24.c [new file with mode: 0644]
gcc/tree-ssa-dse.c