tree-ssa-dse.c (dse_classify_store): Remove use_stmt parameter, add by_clobber_p...
authorRichard Biener <rguenther@suse.de>
Tue, 15 May 2018 11:30:29 +0000 (11:30 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 15 May 2018 11:30:29 +0000 (11:30 +0000)
commitafe3cc7388efa78fe9a5bd914e0a83b20ea6ab9e
tree95b8bbfd9e56bfc685fc06f8401e3985b4e0e04f
parent35b361b1164fbef3f1ca0349302dea7177156a1c
tree-ssa-dse.c (dse_classify_store): Remove use_stmt parameter, add by_clobber_p one.

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.

From-SVN: r260253
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