diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-06-25 17:06:24 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-06-25 17:06:24 +0000 |
commit | 95fbe13e99744b36691495fd81934ccee963c0a3 (patch) | |
tree | 58d174cfbabc3960fc80489c30c5371b65ae2a61 /gcc/tree-vectorizer.c | |
parent | 8d67ee553dc97016a8248b95bfced8f7f5d06663 (diff) | |
download | gcc-95fbe13e99744b36691495fd81934ccee963c0a3.zip gcc-95fbe13e99744b36691495fd81934ccee963c0a3.tar.gz gcc-95fbe13e99744b36691495fd81934ccee963c0a3.tar.bz2 |
hash-traits.h (free_ptr_hash): New class.
gcc/
* hash-traits.h (free_ptr_hash): New class.
* dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
rather than typed_free_remove. Remove redudant typedefs.
(external_ref_hasher): Likewise.
* except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
(ehspec_hasher): Likewise.
* ggc-common.c (saving_hasher): Likewise.
* gimplify.c (gimplify_hasher): Likewise.
* haifa-sched.c (delay_i2_hasher): Likewise.
* loop-invariant.c (invariant_expr_hasher): Likewise.
* loop-iv.c (biv_entry_hasher): Likewise.
* loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
* trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
* tree-cfg.c (locus_discrim_hasher): Likewise.
* tree-eh.c (finally_tree_hasher): Likewise.
* tree-into-ssa.c (var_info_hasher): Likewise.
* tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
* tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
* tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
* tree-ssa-pre.c (expr_pred_trans_d): Likewise.
* tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
* tree-ssa-structalias.c (equiv_class_hasher): Likewise.
(shared_bitmap_hasher): Likewise.
* tree-ssa-threadupdate.c (redirection_data): Likewise.
* tree-vectorizer.h (peel_info_hasher): Likewise.
* tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
* config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
libcc1/
* plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
rather than typed_free_remove. Remove redudant typedefs.
From-SVN: r224958
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r-- | gcc/tree-vectorizer.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 9d17802..e69cbfb 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -102,14 +102,12 @@ vec<vec_void_p> stmt_vec_info_vec; /* For mapping simduid to vectorization factor. */ -struct simduid_to_vf : typed_free_remove<simduid_to_vf> +struct simduid_to_vf : free_ptr_hash<simduid_to_vf> { unsigned int simduid; int vf; /* hash_table support. */ - typedef simduid_to_vf *value_type; - typedef simduid_to_vf *compare_type; static inline hashval_t hash (const simduid_to_vf *); static inline int equal (const simduid_to_vf *, const simduid_to_vf *); }; @@ -138,14 +136,12 @@ simduid_to_vf::equal (const simduid_to_vf *p1, const simduid_to_vf *p2) This hash maps from the OMP simd array (D.1737[]) to DECL_UID of simduid.0. */ -struct simd_array_to_simduid : typed_free_remove<simd_array_to_simduid> +struct simd_array_to_simduid : free_ptr_hash<simd_array_to_simduid> { tree decl; unsigned int simduid; /* hash_table support. */ - typedef simd_array_to_simduid *value_type; - typedef simd_array_to_simduid *compare_type; static inline hashval_t hash (const simd_array_to_simduid *); static inline int equal (const simd_array_to_simduid *, const simd_array_to_simduid *); |