From 30c4440c6ad1034e6e69fa7370659aaa9bb19912 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 18 Oct 2017 13:34:00 +0000 Subject: 2017-10-18 Richard Biener * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple::set_rename): Simplify. (translate_isl_ast_to_gimple::set_rename_for_each_def): Inline... (graphite_copy_stmts_from_block): ... here. (copy_bb_and_scalar_dependences): Simplify. (add_parameters_to_ivs_params): Canonicalize. (generate_entry_out_of_ssa_copies): Simplify. * graphite-sese-to-poly.c (extract_affine_name): Simplify by passing in ISL dimension. (parameter_index_in_region_1): Rename to ... (parameter_index_in_region): ... this. (extract_affine): Adjust assert, pass down parameter index. (add_param_constraints): Use range-info when available. (build_scop_context): Adjust. * sese.c (new_sese_info): Adjust. (free_sese_info): Likewise. * sese.h (bb_map_t, rename_map_t, phi_rename, init_back_edge_pair_t): Remove unused typedefs. (struct sese_info_t): Simplify rename_map, remove incomplete_phis. From-SVN: r253855 --- gcc/sese.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'gcc/sese.h') diff --git a/gcc/sese.h b/gcc/sese.h index c6e8861..cbc20ab 100644 --- a/gcc/sese.h +++ b/gcc/sese.h @@ -22,13 +22,7 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_SESE_H #define GCC_SESE_H -typedef hash_map > bb_map_t; -typedef hash_map > rename_map_t; typedef struct ifsese_s *ifsese; -/* First phi is the new codegenerated phi second one is original phi. */ -typedef std::pair phi_rename; -/* First edge is the init edge and second is the back edge w.r.t. a loop. */ -typedef std::pair init_back_edge_pair_t; /* A Single Entry, Single Exit region is a part of the CFG delimited by two edges. */ @@ -91,18 +85,12 @@ typedef struct sese_info_t /* Parameters used within the SCOP. */ vec params; - /* Maps an old name to one or more new names. When there are several new - names, one has to select the definition corresponding to the immediate - dominator. */ - rename_map_t *rename_map; + /* Maps an old name to a new decl. */ + hash_map *rename_map; /* Basic blocks contained in this SESE. */ vec bbs; - /* A vector of phi nodes to be updated when all arguments are available. The - pair contains first the old_phi and second the new_phi. */ - vec incomplete_phis; - /* The condition region generated for this sese. */ ifsese if_region; -- cgit v1.1