re PR tree-optimization/34172 (Missed store ccp optimization)
authorRichard Guenther <rguenther@suse.de>
Fri, 14 Mar 2008 17:05:48 +0000 (17:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 14 Mar 2008 17:05:48 +0000 (17:05 +0000)
commit896c8b96c5cf36090b62e5f1ba8ce7e49a4a53e5
treee62afbba9e20ac34bc1bb3da1a97cb976122058a
parent155350439afb47e68f93beb052eb93c0128c017c
re PR tree-optimization/34172 (Missed store ccp optimization)

2008-03-14  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/34172
* tree-flow.h (refs_may_alias_p): Declare.
(get_single_def_stmt): Likewise.
(get_single_def_stmt_from_phi): Likewise.
(get_single_def_stmt_with_phi): Likewise.
* tree-dfa.c (refs_may_alias_p): New function.
(get_single_def_stmt): Likewise.
(get_single_def_stmt_from_phi): Likewise.
(get_single_def_stmt_with_phi): Likewise.
* tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
(vn_reference_lookup_1): New helper function.
(vn_reference_lookup): Walk the virtual use-def chain to
continue searching for a match if the def does not alias the
reference we are looking for.

* gcc.dg/tree-ssa/ssa-fre-11.c: New testcase.
* gcc.dg/tree-ssa/ssa-fre-12.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-13.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-14.c: Likewise.
* gcc.dg/tree-ssa/ssa-fre-15.c: Likewise.
* gcc.dg/tree-ssa/20031106-4.c: Remove XFAIL.

From-SVN: r133222
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/20031106-4.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-11.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-13.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-14.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-15.c [new file with mode: 0644]
gcc/tree-dfa.c
gcc/tree-flow.h
gcc/tree-ssa-sccvn.c