This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa][PATCH]: Alias stats
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Daniel Berlin <dberlin at dberlin dot org>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 19 Dec 2003 08:10:15 -0500
- Subject: Re: [tree-ssa][PATCH]: Alias stats
- Organization: Red Hat Canada
- References: <93B4CB24-31E2-11D8-A096-000A95DA505C@dberlin.org>
On Fri, 2003-12-19 at 00:17, Daniel Berlin wrote:
> The numbers for pointer TBAA (or whatever we call it) are weird because
> unlike the other queries, it's not called all the time.
>
There's no point keeping pointer TBAA separate. Just group it together
with TBAA. The only reason we need it is to fix false positives
involving 'TYPE **' and 'TYPE *' pointers that may sometimes have
conflicting alias types if TYPE is a structure containing 'TYPE *'.
> * tree-dfa.c (alias_stats_d): New structure.
> (alias_stats): New variable.
> (find_referenced_vars): Zero out alias_stats.
> (dump_alias_stats): New function.
> (compute_alias_sets): Call it if TDF_STATS is set.
> (may_alias_p): Collect the various statistics.
>
OK with the above change.
Thanks. Diego.