re PR tree-optimization/85757 (tree optimizers fail to fully clean up fixed-size...
authorRichard Biener <rguenther@suse.de>
Thu, 17 May 2018 06:57:45 +0000 (06:57 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 17 May 2018 06:57:45 +0000 (06:57 +0000)
commit773d0331f7456614f9f7e619e642946d9bdc638a
tree548ff0f2efa59788903cd0e6dc22e20a8d9a7156
parent8ee520219f795fc363d90c1e92ebad642d0e9f69
re PR tree-optimization/85757 (tree optimizers fail to fully clean up fixed-size memcpy)

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.

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