This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][PING] SCCVN alias oracle
- From: "Daniel Berlin" <dberlin at dberlin dot org>
- To: "Richard Guenther" <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, dnovillo at google dot com
- Date: Fri, 14 Mar 2008 11:41:46 -0400
- Subject: Re: [PATCH][PING] SCCVN alias oracle
- References: <Pine.LNX.4.64.0803141519290.4133@zhemvz.fhfr.qr>
On Fri, Mar 14, 2008 at 10:21 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> This patch adds an alias oracle to SCCVN (I stripped out all unrelated
> parts that were either committed or are unnecessary for the SCCVN part
> and moved generic functions to tree-dfa.c).
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu. Ok for trunk?
>
> Thanks,
> Richard.
>
> 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.
The SCCVN parts look good to me