tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.

* tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
        * tree-ssa-structalias.c (compute_points_to_sets): Do call
        init_alias_heapvars.
        (init_alias_heapvars): Initialize only when not already initialized.
        (delete_alias_heapvars): Set heapvar_for_stmt to NULL.

From-SVN: r120983
This commit is contained in:
Jan Hubicka 2007-01-20 01:13:38 +01:00 committed by Jan Hubicka
parent d6e2570089
commit c9fa8bd45b
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2007-01-20 Jan Hubicka <jh@suse.cz>
* tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
* tree-ssa-structalias.c (compute_points_to_sets): Do call
init_alias_heapvars.
(init_alias_heapvars): Initialize only when not already initialized.
(delete_alias_heapvars): Set heapvar_for_stmt to NULL.
2007-01-19 Roger Sayle <roger@eyesopen.com>
* common.opt (fsigned-zeros): New command line option.

View File

@ -4692,6 +4692,7 @@ compute_points_to_sets (struct alias_info *ai)
timevar_push (TV_TREE_PTA);
init_alias_vars ();
init_alias_heapvars ();
intra_create_variable_infos ();
@ -4934,6 +4935,7 @@ struct tree_opt_pass pass_ipa_pta =
void
init_alias_heapvars (void)
{
if (!heapvar_for_stmt)
heapvar_for_stmt = htab_create_ggc (11, tree_map_hash, tree_map_eq,
NULL);
}
@ -4942,6 +4944,7 @@ void
delete_alias_heapvars (void)
{
htab_delete (heapvar_for_stmt);
heapvar_for_stmt = NULL;
}

View File

@ -778,7 +778,6 @@ init_tree_ssa (void)
var_ann_eq, NULL);
cfun->gimple_df->call_clobbered_vars = BITMAP_GGC_ALLOC ();
cfun->gimple_df->addressable_vars = BITMAP_GGC_ALLOC ();
init_alias_heapvars ();
init_ssanames ();
init_phinodes ();
}