Commit 91bf00a9 by Aditya Kumar Committed by Sebastian Pop

remove unused code

2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
                Sebastian Pop  <s.pop@samsung.com>

                * 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 <s.pop@samsung.com>

From-SVN: r228574
parent bafcb153
2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com>
* 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 <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com>
* graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
an sese_info_p.
(copy_def): Same.
......@@ -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
......
......@@ -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;
......
......@@ -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_p> 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);
......
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