This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add PTA during early optimizations
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Jan Hubicka <jh at suse dot de>
- Date: Mon, 25 May 2009 15:29:40 -0700
- Subject: Re: [PATCH] Add PTA during early optimizations
- References: <alpine.LNX.2.00.0905251529570.4629@zhemvz.fhfr.qr>
On Mon, May 25, 2009 at 6:32 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> This adds an early points-to analysis pass as requested by Honza. ?I
> ended up not using the points-to set merging code as I have convinced
> myself that we can re-compute the local points-to solutions retaining
> results from IPA-PTA if we properly use per cgraph-node function infos
> and seed the local constraints with them (which of course remains to
> be done). ?The patch also merges correctness pieces from the earlier
> attempt.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
>
> Richard.
>
> 2009-05-25 ?Richard Guenther ?<rguenther@suse.de>
>
> ? ? ? ?* tree-ssa-alias.h (dump_points_to_solution): Declare.
> ? ? ? ?* tree-inline.c (expand_call_inline): Reset the escaped and
> ? ? ? ?callused solutions.
> ? ? ? ?* tree-ssa-structalias.c (pass_build_ealias): New.
> ? ? ? ?* tree-pass.h (pass_build_ealias): Declare.
> ? ? ? ?* passes.c (init_optimization_passes): Add PTA during
> ? ? ? ?early optimizations.
> ? ? ? ?* tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
> ? ? ? ?and CALLUSED solutions.
> ? ? ? ?(dump_points_to_solution): New function, split out from ...
> ? ? ? ?(dump_points_to_info_for): ... here.
> ? ? ? ?* tree-parloops.c (parallelize_loops): Reset the escaped and
> ? ? ? ?callused solutions.
>
> ? ? ? ?* gcc.dg/tree-ssa/ssa-fre-14.c: Adjust.
> ? ? ? ?* gcc.dg/tree-ssa/ssa-fre-15.c: Likewise.
>
This caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40247
--
H.J.