This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][PING] SCCVN alias oracle


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]