2018-05-15 Richard Biener <rguenther@suse.de>
commit8ade4cdeb710851af02f76a42ed017302015abd3
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 May 2018 11:30:29 +0000 (15 11:30 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 May 2018 11:30:29 +0000 (15 11:30 +0000)
tree95b8bbfd9e56bfc685fc06f8401e3985b4e0e04f
parent599a98fa661f946204746211eead9ff0d8e0640c
2018-05-15  Richard Biener  <rguenther@suse.de>

* tree-ssa-dse.c (dse_classify_store): Remove use_stmt parameter,
add by_clobber_p one.  Change algorithm to collect all defs
representing uses we need to walk and try reducing them to
a single one before failing.
(dse_dom_walker::dse_optimize_stmt): Adjust.

* gcc.dg/tree-ssa/ssa-dse-31.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260253 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-31.c [new file with mode: 0644]
gcc/tree-ssa-dse.c