re PR tree-optimization/66502 (SCCVN can't handle PHIs optimistically optimally)
authorRichard Biener <rguenther@suse.de>
Thu, 13 Aug 2015 07:06:10 +0000 (07:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 13 Aug 2015 07:06:10 +0000 (07:06 +0000)
commit9fe4f60adbda974b46b7fa5fd005adae973f6f80
treef2e7b5bd717bc883deb67d37eaeafab5b16e09d8
parent003b40ae57ba5c1acb06752936536298e029c189
re PR tree-optimization/66502 (SCCVN can't handle PHIs optimistically optimally)

2015-08-13  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66502
PR tree-optimization/67167
* tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
backedge arguments.
(vn_phi_lookup): Adjust.
(vn_phi_insert): Likewise.
(visit_phi): Prefer to value-number to another PHI node
over value-numbering to a PHI argument.
(init_scc_vn): Mark DFS back edges.

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

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