From 91bf00a903438a1f5937791c2c10460d248eb74a Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Wed, 7 Oct 2015 16:19:09 +0000 Subject: [PATCH] remove unused code 2015-10-07 Aditya Kumar Sebastian Pop * graphite-scop-detection.c (parameter_index_in_region): Remove use of SESE_ADD_PARAMS. (find_scop_parameters): Same. * sese.c (new_sese_info): Same. * sese.h (struct sese_info_t): Remove add_params. (SESE_ADD_PARAMS): Remove. Co-Authored-By: Sebastian Pop From-SVN: r228574 --- gcc/ChangeLog | 10 ++++++++++ gcc/graphite-scop-detection.c | 3 --- gcc/sese.c | 1 - gcc/sese.h | 8 +------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0dd02fb23c..2d51ce850dd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2015-10-07 Aditya Kumar + Sebastian Pop + + * graphite-scop-detection.c (parameter_index_in_region): Remove + use of SESE_ADD_PARAMS. + (find_scop_parameters): Same. + * sese.c (new_sese_info): Same. + * sese.h (struct sese_info_t): Remove add_params. + (SESE_ADD_PARAMS): Remove. + 2015-10-07 Aditya Kumar Sebastian Pop diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index 7e5039cb3a6..43e03a68965 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -1671,8 +1671,6 @@ parameter_index_in_region (tree name, sese_info_p region) if (i != -1) return i; - gcc_assert (SESE_ADD_PARAMS (region)); - i = SESE_PARAMS (region).length (); SESE_PARAMS (region).safe_push (name); return i; @@ -1790,7 +1788,6 @@ find_scop_parameters (scop_p scop) int nbp = sese_nb_params (region); scop_set_nb_params (scop, nbp); - SESE_ADD_PARAMS (region) = false; } class sese_dom_walker : public dom_walker diff --git a/gcc/sese.c b/gcc/sese.c index ad6c89a0a69..6bb13226232 100644 --- a/gcc/sese.c +++ b/gcc/sese.c @@ -263,7 +263,6 @@ new_sese_info (edge entry, edge exit) region->region.exit = exit; SESE_LOOPS (region) = BITMAP_ALLOC (NULL); SESE_LOOP_NEST (region).create (3); - SESE_ADD_PARAMS (region) = true; SESE_PARAMS (region).create (3); region->parameter_rename_map = new parameter_rename_map_t; diff --git a/gcc/sese.h b/gcc/sese.h index 5cca574c68d..2cda5e1f617 100644 --- a/gcc/sese.h +++ b/gcc/sese.h @@ -75,20 +75,14 @@ typedef struct sese_info_t /* Parameters to be renamed. */ parameter_rename_map_t *parameter_rename_map; - /* Loops completely contained in the SCOP. */ + /* Loops completely contained in this SESE. */ bitmap loops; vec loop_nest; - - /* Are we allowed to add more params? This is for debugging purpose. We - can only add new params before generating the bb domains, otherwise they - become invalid. */ - bool add_params; } *sese_info_p; #define SESE_PARAMS(S) (S->params) #define SESE_LOOPS(S) (S->loops) #define SESE_LOOP_NEST(S) (S->loop_nest) -#define SESE_ADD_PARAMS(S) (S->add_params) extern sese_info_p new_sese_info (edge, edge); extern void free_sese_info (sese_info_p);