2018-09-03 Richard Biener <rguenther@suse.de>
commit6f5bdb3486b47df6735bbcf93fd585361122bd50
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Sep 2018 13:28:25 +0000 (3 13:28 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Sep 2018 13:28:25 +0000 (3 13:28 +0000)
tree1563fe500213e173d780fd3a853c30d2ad90eb75
parent43125e2974d3d819cd226c4b56eec9d48d8d120d
2018-09-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/87197
* tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Mark the new def
visited.  CSE the VN_INFO hashtable lookup.

* gcc.dg/torture/pr87197.c: New testcase.

PR tree-optimization/87169
* tree-ssa-sccvn.c (do_rpo_vn): When marking loops for not
iterating make sure there's no extra backedges from irreducible
regions feeding the header.  Mark the destination block
executable.

* gcc.dg/torture/pr87169.c: New testcase.

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