2018-05-17 Richard Biener <rguenther@suse.de>
commit7acf1661c40730930c69ce42dd14cf97b7c23686
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 May 2018 06:57:45 +0000 (17 06:57 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 May 2018 06:57:45 +0000 (17 06:57 +0000)
tree548ff0f2efa59788903cd0e6dc22e20a8d9a7156
parent3474beffb1fd23da44a752763e648d5d1ffa4d0f
2018-05-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/85757
* tree-ssa-dse.c (dse_classify_store): Record a PHI def and
remove defs that only feed that PHI from further processing.

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

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