Patchwork Remove unused symbols.

login
register
mail settings
Submitter Lawrence Crowl
Date March 29, 2013, 8:21 a.m.
Message ID <CAGqM8fbD90zogiU2hw5Raf5A5SSe2+FT8cErgxUukPh65CtqkQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/232313/
State New
Headers show

Comments

Lawrence Crowl - March 29, 2013, 8:21 a.m.
Remove various unused symbols.

Tested on x86-64.

Committed as obvious.

Patch

Index: gcc/ChangeLog

	* graphds.h (struct graph.indicies): Remove unused.
	* graphite-poly.h (struct graph.original_pddrs): Remove unused.
	(SCOP_ORIGINAL_PDDRS): Remove unused.
	* sese.h (extern insert_loop_close_phis): Removed unused.
	(extern insert_guard_phis): Removed unused.
	(extern ivtype_map_elt_info): Removed unused.
	(new_ivtype_map_elt): Removed unused.
	* sese.c (ivtype_map_elt_info): Removed unused.

2013-03-28  Lawrence Crowl  <crowl@google.com>

Index: gcc/sese.c
===================================================================
--- gcc/sese.c	(revision 197224)
+++ gcc/sese.c	(working copy)
@@ -111,14 +111,6 @@  debug_ivtype_map (htab_t map)
   htab_traverse (map, debug_ivtype_map_1, NULL);
 }

-/* Computes a hash function for database element ELT.  */
-
-hashval_t
-ivtype_map_elt_info (const void *elt)
-{
-  return htab_hash_pointer (((const struct ivtype_map_elt_s *) elt)->cloog_iv);
-}
-
 /* Compares database elements E1 and E2.  */

 int
Index: gcc/sese.h
===================================================================
--- gcc/sese.h	(revision 197224)
+++ gcc/sese.h	(working copy)
@@ -58,8 +58,6 @@  extern void build_sese_loop_nests (sese)
 extern edge copy_bb_and_scalar_dependences (basic_block, sese, edge,
 					    vec<tree> , bool *);
 extern struct loop *outermost_loop_in_sese (sese, basic_block);
-extern void insert_loop_close_phis (htab_t, loop_p);
-extern void insert_guard_phis (basic_block, edge, edge, htab_t, htab_t);
 extern tree scalar_evolution_in_region (sese, loop_p, tree);

 /* Check that SESE contains LOOP.  */
@@ -286,23 +284,8 @@  typedef struct ivtype_map_elt_s
 } *ivtype_map_elt;

 extern void debug_ivtype_map (htab_t);
-extern hashval_t ivtype_map_elt_info (const void *);
 extern int eq_ivtype_map_elts (const void *, const void *);

-/* Constructs a new SCEV_INFO_STR structure for VAR and INSTANTIATED_BELOW.  */
-
-static inline ivtype_map_elt
-new_ivtype_map_elt (const char *cloog_iv, tree type)
-{
-  ivtype_map_elt res;
-
-  res = XNEW (struct ivtype_map_elt_s);
-  res->cloog_iv = cloog_iv;
-  res->type = type;
-
-  return res;
-}
-
 /* Free and compute again all the dominators information.  */

 static inline void
Index: gcc/graphds.h
===================================================================
--- gcc/graphds.h	(revision 197224)
+++ gcc/graphds.h	(working copy)
@@ -46,7 +46,6 @@  struct graph
   int n_vertices;	/* Number of vertices.  */
   struct vertex *vertices;
 			/* The vertices.  */
-  htab_t indices;	/* Fast lookup for indices.  */
 };

 struct graph *new_graph (int);
Index: gcc/graphite-poly.h
===================================================================
--- gcc/graphite-poly.h	(revision 197224)
+++ gcc/graphite-poly.h	(working copy)
@@ -1376,10 +1376,6 @@  struct scop
     *must_war, *may_war, *must_war_no_source, *may_war_no_source,
     *must_waw, *may_waw, *must_waw_no_source, *may_waw_no_source;

-  /* A hashtable of the data dependence relations for the original
-     scattering.  */
-  htab_t original_pddrs;
-
   /* True when the scop has been converted to its polyhedral
      representation.  */
   bool poly_scop_p;
@@ -1388,7 +1384,6 @@  struct scop
 #define SCOP_BBS(S) (S->bbs)
 #define SCOP_REGION(S) ((sese) S->region)
 #define SCOP_CONTEXT(S) (NULL)
-#define SCOP_ORIGINAL_PDDRS(S) (S->original_pddrs)
 #define SCOP_ORIGINAL_SCHEDULE(S) (S->original_schedule)
 #define SCOP_TRANSFORMED_SCHEDULE(S) (S->transformed_schedule)
 #define SCOP_SAVED_SCHEDULE(S) (S->saved_schedule)