Commit c9fa8bd4 by Jan Hubicka Committed by Jan Hubicka

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
parent d6e25700
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> 2007-01-19 Roger Sayle <roger@eyesopen.com>
* common.opt (fsigned-zeros): New command line option. * common.opt (fsigned-zeros): New command line option.
......
...@@ -4692,6 +4692,7 @@ compute_points_to_sets (struct alias_info *ai) ...@@ -4692,6 +4692,7 @@ compute_points_to_sets (struct alias_info *ai)
timevar_push (TV_TREE_PTA); timevar_push (TV_TREE_PTA);
init_alias_vars (); init_alias_vars ();
init_alias_heapvars ();
intra_create_variable_infos (); intra_create_variable_infos ();
...@@ -4934,14 +4935,16 @@ struct tree_opt_pass pass_ipa_pta = ...@@ -4934,14 +4935,16 @@ struct tree_opt_pass pass_ipa_pta =
void void
init_alias_heapvars (void) init_alias_heapvars (void)
{ {
heapvar_for_stmt = htab_create_ggc (11, tree_map_hash, tree_map_eq, if (!heapvar_for_stmt)
NULL); heapvar_for_stmt = htab_create_ggc (11, tree_map_hash, tree_map_eq,
NULL);
} }
void void
delete_alias_heapvars (void) delete_alias_heapvars (void)
{ {
htab_delete (heapvar_for_stmt); htab_delete (heapvar_for_stmt);
heapvar_for_stmt = NULL;
} }
......
...@@ -778,7 +778,6 @@ init_tree_ssa (void) ...@@ -778,7 +778,6 @@ init_tree_ssa (void)
var_ann_eq, NULL); var_ann_eq, NULL);
cfun->gimple_df->call_clobbered_vars = BITMAP_GGC_ALLOC (); cfun->gimple_df->call_clobbered_vars = BITMAP_GGC_ALLOC ();
cfun->gimple_df->addressable_vars = BITMAP_GGC_ALLOC (); cfun->gimple_df->addressable_vars = BITMAP_GGC_ALLOC ();
init_alias_heapvars ();
init_ssanames (); init_ssanames ();
init_phinodes (); init_phinodes ();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment