[PATCH 2/5]: Use pointer_map in structalias

Diego Novillo dnovillo@redhat.com
Tue Feb 6 13:58:00 GMT 2007


Paolo Bonzini wrote on 02/06/07 07:46:
> 	* tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
> 	(struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
> 	(insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
> 	is not NULL.
> 	(lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
> 	directly since it cannot be NULL.
> 	(get_vi_for_tree): Rewrite for pointer_map API.
> 	(find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
> 	(init_alias_vars): Create vi_for_tree as pointer_map.
> 	(delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
> 
OK with:

>  /* Insert ID as the variable id for tree T in the hashtable.  */
>  
Need to update comment.


>  /* Find the variable info for tree T in VI_FOR_TREE.  If T does not
>     exist in the hash table, return false, otherwise, return true and
>     set *VI to the varinfo we found.  */
>  
Likewise.

Any noticeable compile-time differences?



More information about the Gcc-patches mailing list