re PR tree-optimization/64193 (Decreased performance after r173250)
authorRichard Biener <rguenther@suse.de>
Tue, 9 Dec 2014 14:25:09 +0000 (14:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 Dec 2014 14:25:09 +0000 (14:25 +0000)
commit92a5094e04e9c9a50e596884eacabe53b36a53e9
treeb2b878ed94eea9cd92e69a9449a9a13df6159253
parentc3e1e6936a4bbeb7cd73640e046bb32d23997ac0
re PR tree-optimization/64193 (Decreased performance after r173250)

2014-12-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/64193
* tree-ssa-alias.c (walk_non_aliased_vuses): Add valueize parameter
and valueize the VUSE before looking up the def stmt.
* tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
* tree-ssa-sccvn.c (vn_reference_lookup_pieces): Pass vn_valueize
to walk_non_aliased_vuses.
(vn_reference_lookup): Likewise.
* tree-ssa-dom.c (lookup_avail_expr): Pass NULL as valueize
callback to walk_non_aliased_vuses.

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

From-SVN: r218515
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-43.c [new file with mode: 0644]
gcc/tree-ssa-alias.c
gcc/tree-ssa-alias.h
gcc/tree-ssa-dom.c
gcc/tree-ssa-sccvn.c