2017-11-23 Richard Biener <rguenther@suse.de>
commit3ab76bd4ffe4c50fddd0edcf38d6851cce7e581a
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Nov 2017 09:05:11 +0000 (23 09:05 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Nov 2017 09:05:11 +0000 (23 09:05 +0000)
treed8b5404eccbb222d1e6e5d2a067adec60e607835
parent4e90f5752b2434ed903157117c7fc79a486484f2
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255093 138bc75d-0d04-0410-961f-82ee72b054a4
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