tree-ssa-dse.c (decrement_count): New function.
authorJeff Law <law@redhat.com>
Fri, 13 Jan 2017 15:50:11 +0000 (08:50 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 13 Jan 2017 15:50:11 +0000 (08:50 -0700)
commit7c9560a578a06125cb30458a26605f91feb29b0d
treeadb4b9543c487f0b0c01eb958a60ade732154805
parent9e59e99a6016420f36eb3a2a8a7912c58ef99a17
tree-ssa-dse.c (decrement_count): New function.

* tree-ssa-dse.c (decrement_count): New function.
(increment_start_addr, maybe_trim_memstar_call): Likewise.
(dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
when we know the partially dead statement is a mem* function.

* gcc.dg/tree-ssa/ssa-dse-25.c: New test.

From-SVN: r244444
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-25.c [new file with mode: 0644]
gcc/tree-ssa-dse.c