re PR tree-optimization/23094 (store ccp, or store copy prop misses an optimization)
authorRichard Biener <rguenther@suse.de>
Thu, 23 Nov 2017 09:05:11 +0000 (09:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 23 Nov 2017 09:05:11 +0000 (09:05 +0000)
commitd7a160a45ea7ed09247788c708721c2813cf0007
treed8b5404eccbb222d1e6e5d2a067adec60e607835
parentbb9ec14d414a51c3461510f3cddfcafe11b35ee1
re PR tree-optimization/23094 (store ccp, or store copy prop misses an optimization)

2017-11-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/23094
* tree-ssa-sccvn.c (vuse_ssa_val): Handle VN_TOP when we
come here from walking over backedges in the first iteration.
(vn_reference_lookup_3): Skip clobbers that store the same value.

* gcc.dg/tree-ssa/ssa-fre-61.c: New testcase.

From-SVN: r255093
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-61.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c