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: [tree-ssa][PATCH]: Alias stats


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.


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