diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-30 22:18:42 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-30 22:18:42 +0000 |
commit | a55dc2cd86f718c1ad76ce7d418c9a8a44b2440b (patch) | |
tree | 93a9e5ca3a3ce97f70134506548b6bda75edd769 /gcc/tree-into-ssa.c | |
parent | eb8c35b0e5b145fd1af8ec1337194ecc967ad753 (diff) | |
download | gcc-a55dc2cd86f718c1ad76ce7d418c9a8a44b2440b.tar.gz |
2005-06-29 Daniel Berlin <dberlin@dberlin.org>
* tree-complex.c (complex_variable_components): Now a hashtable.
(cvc_lookup): Ditto.
(cvc_insert): Ditto.
(create_components): Use referenced var iterator.
Initialize hashtable. Use cvc_insert/lookup.
(extract_components): Use cvc_insert/lookup.
(update_complex_components): Ditto.
(update_complex_components_on_edge): Ditto.
* tree-dfa.c (referenced_vars): Now a hashtable.
(dump_referenced_vars): Use iterator.
(referenced_var_lookup): New function.
(referenced_var_insert): Ditto.
(add_referenced_var): Use referenced_var_insert.
(mark_new_vars_to_rename): Use DECL_UID.
* tree-flow-inline.h (first_htab_element): New function.
(end_htab_p): Ditto.
(next_htab_element): Ditto.
(first_referenced_var): Ditto.
(end_referenced_vars_p): Ditto.
(next_referenced_var): Ditto.
(is_call_clobbered): Use DECL_UID.
(mark_call_clobbered): Ditto.
(clear_call_clobbered): Ditto.
(mark_non_addressable): Ditto.
* tree-flow.h (htab_iterator): New struct.
(FOR_EACH_HTAB_ELEMENT): New macro.
(struct int_tree_map): New struct.
(int_tree_map_hash): Prototype.
(int_tree_map_eq): Ditto.
(referenced_var_iterator): Ditto.
(FOR_EACH_REFERENCED_VAR): New macro.
(referenced_vars): Now a hashtable.
* tree-into-ssa.c (symbol_marked_for_renaming): Use DECL_UID.
(add_new_name_mapping): Ditto.
(mark_def_sites): Ditto.
(insert_phi_nodes): Use referenced_var iterator.
(mark_def_site_blocks): Ditto.
(mark_sym_for_renaming): Use DECL_UID.
* tree-sra.c (is_sra_candidate_decl): Use DECL_UID.
(lookup_element): Ditto.
(find_candidates_for_sra): Use referenced_vars iterator.
Use DECL_UID.
* tree-ssa-alias.c (NUM_REFERENCES): New macro.
(NUM_REFERENCES_CLEAR): Ditto.
(NUM_REFERENCES_INC): Ditto.
(NUM_REFERENCES_SET): Ditto.
(alias_obstack): New bitmap obstack.
(struct alias_map_d): Use bitmap, not sbitmap.
(struct alias_info): Remove num_references.
(init_alias_info): Use referenced_var iterator.
Initialize bitmap obstack.
(delete_alias_info): Use referenced_var iterator.
Free bitmap obstack.
(compute_points_to_and_addr_escape): Use DECL_UID.
Use new NUM_REFERENCES macros.
(compute_flow_sensitive_aliasing): may_aliases is now a bitmap.
Use new NUM_REFERENCES macros.
(group_aliases_into): Update prototype to use bitmap.
(setup_pointers_and_addressables): Use referenced_vars iterator.
Use DECL_UID. Use new NUM_REFERENCES macros.
(add_pointed_to_var): Use DECL_UID.
(dump_alias_info): Use referenced_var iterator.
(add_type_alias): Ditto.
(used_portions): Now a hashtable.
(used_part_map_eq): New function.
(used_part_map_hash): Ditto.
(free_used_part_map): Ditto.
(up_lookup): Ditto.
(up_insert): Ditto.
(get_or_create_used_part_for): Use up_lookup.
(create_overlap_variables_for): Ditto.
(find_used_portions): Use up_insert.
Use DECL_UID.
(create_structure_vars): Init used_portions hashtable, use
referenced_vars iterator.
* tree-ssa-live.c (create_ssa_var_map): sbitmaps became bitmaps.
Use DECL_UID.
* tree-ssa-loop-im.c (gather_mem_refs_stmt): Use DECL_UID.
* tree-ssa-operands.c (get_asm_expr_operands): Ditto.
(note_addressable): Ditto.
* tree-ssa-structalias.c (set_uids_in_ptset): Ditto.
* tree-ssa.c (verify_flow_insensitive_alias_info): Use
referenced_var iterator.
Use DECL_UID.
(delete_tree_ssa): Ditto.
(int_tree_map_eq): New function.
(int_tree_map_hash): Ditto.
* tree-stdarg.c (find_va_list_reference): Use DECL_UID.
(va_list_ptr_read): Ditto.
(va_list_counter_struct_op): Ditto.
(va_list_ptr_write): Ditto.
(check_va_list_escapes): Ditto.
(check_all_va_list_escapes): Ditto.
(execute_optimize_stdarg): Ditto.
* tree-tailcall.c (suitable_for_tail_opt_p): Used referenced_var
iterator.
2005-06-30 Daniel Berlin <dberlin@dberlin.org>
* hashtab.h (HTAB_DELETED_ENTRY): New macro.
(HTAB_EMPTY_ENTRY): New macro.
2005-06-30 Daniel Berlin <dberlin@dberlin.org>
* hashtab.c (EMPTY_ENTRY): Moved and renamed.
(DELETED_ENTRY): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101480 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 2670b57f16d..02e587669d9 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -454,7 +454,7 @@ static inline bool symbol_marked_for_renaming (tree sym) { gcc_assert (DECL_P (sym)); - return bitmap_bit_p (syms_to_rename, var_ann (sym)->uid); + return bitmap_bit_p (syms_to_rename, DECL_UID (sym)); } @@ -582,7 +582,7 @@ add_new_name_mapping (tree new, tree old) Otherwise, the insertion of PHI nodes for each of the old names in these mappings will be very slow. */ sym = SSA_NAME_VAR (new); - uid = var_ann (sym)->uid; + uid = DECL_UID (sym); update_ssa_stats.num_virtual_mappings++; if (!bitmap_bit_p (update_ssa_stats.virtual_symbols, uid)) { @@ -651,7 +651,7 @@ mark_def_sites (struct dom_walk_data *walk_data, { tree sym = USE_FROM_PTR (use_p); gcc_assert (DECL_P (sym)); - if (!bitmap_bit_p (kills, var_ann (sym)->uid)) + if (!bitmap_bit_p (kills, DECL_UID (sym))) set_livein_block (sym, bb); REWRITE_THIS_STMT (stmt) = 1; } @@ -676,7 +676,7 @@ mark_def_sites (struct dom_walk_data *walk_data, { gcc_assert (DECL_P (def)); set_def_block (def, bb, false); - bitmap_set_bit (kills, var_ann (def)->uid); + bitmap_set_bit (kills, DECL_UID (def)); REGISTER_DEFS_IN_THIS_STMT (stmt) = 1; } @@ -861,15 +861,15 @@ insert_phi_nodes_for (tree var, bitmap phi_insertion_points, bool update_p) static void insert_phi_nodes (bitmap *dfs) { - unsigned i; + referenced_var_iterator rvi; + tree var; timevar_push (TV_TREE_INSERT_PHI_NODES); - - for (i = 0; i < num_referenced_vars; i++) + + FOR_EACH_REFERENCED_VAR (var, rvi) { struct def_blocks_d *def_map; bitmap idf; - tree var = referenced_var (i); def_map = find_def_blocks_for (var); if (def_map == NULL) @@ -1662,16 +1662,16 @@ mark_def_sites_initialize_block (struct dom_walk_data *walk_data, static void mark_def_site_blocks (sbitmap interesting_blocks) { - size_t i; struct dom_walk_data walk_data; struct mark_def_sites_global_data mark_def_sites_global_data; + referenced_var_iterator rvi; + tree var; /* Allocate memory for the DEF_BLOCKS hash table. */ - def_blocks = htab_create (VEC_length (tree, referenced_vars), + def_blocks = htab_create (num_referenced_vars, def_blocks_hash, def_blocks_eq, def_blocks_free); - - for (i = 0; i < num_referenced_vars; i++) - set_current_def (referenced_var (i), NULL_TREE); + FOR_EACH_REFERENCED_VAR(var, rvi) + set_current_def (var, NULL_TREE); /* Setup callbacks for the generic dominator tree walker to find and mark definition sites. */ @@ -2287,7 +2287,7 @@ mark_sym_for_renaming (tree sym) if (need_to_initialize_update_ssa_p) init_update_ssa (); - bitmap_set_bit (syms_to_rename, var_ann (sym)->uid); + bitmap_set_bit (syms_to_rename, DECL_UID (sym)); if (!is_gimple_reg (sym)) need_to_update_vops_p = true; @@ -2769,7 +2769,7 @@ update_ssa (unsigned update_flags) EXECUTE_IF_SET_IN_BITMAP (syms_to_rename, 0, i, bi) insert_updated_phi_nodes_for (referenced_var (i), dfs, blocks, - update_flags); + update_flags); FOR_EACH_BB (bb) BITMAP_FREE (dfs[bb->index]); |