This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] cfgloop.c: Remove flow_loops_update.


Hi,

Attached is a patch to remove flow_loops_update as it is unused.

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2004-11-07  Kazu Hirata  <kazu@cs.umass.edu>

	* cfgloop.c (flow_loops_update): Remove.
	* cfgloop.h: Remove the corresponding prototype.

Index: cfgloop.c
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/cfgloop.c,v
retrieving revision 1.41
diff -u -d -p -r1.41 cfgloop.c
--- cfgloop.c	13 Oct 2004 03:48:03 -0000	1.41
+++ cfgloop.c	7 Nov 2004 06:46:44 -0000
@@ -973,20 +973,6 @@ flow_loops_find (struct loops *loops, in
   return loops->num;
 }
 
-/* Update the information regarding the loops in the CFG
-   specified by LOOPS.  */
-
-int
-flow_loops_update (struct loops *loops, int flags)
-{
-  /* One day we may want to update the current loop data.  For now
-     throw away the old stuff and rebuild what we need.  */
-  if (loops->parray)
-    flow_loops_free (loops);
-
-  return flow_loops_find (loops, flags);
-}
-
 /* Return nonzero if basic block BB belongs to LOOP.  */
 bool
 flow_bb_inside_loop_p (const struct loop *loop, const basic_block bb)
Index: cfgloop.h
===================================================================
RCS file: /home/kazu/nobackup/gcc-cvs/gcc/gcc/cfgloop.h,v
retrieving revision 1.36
diff -u -d -p -r1.36 cfgloop.h
--- cfgloop.h	2 Nov 2004 17:59:29 -0000	1.36
+++ cfgloop.h	7 Nov 2004 06:46:44 -0000
@@ -265,7 +265,6 @@ extern struct loops *current_loops;
 
 /* Loop recognition.  */
 extern int flow_loops_find (struct loops *, int flags);
-extern int flow_loops_update (struct loops *, int flags);
 extern void flow_loops_free (struct loops *);
 extern void flow_loops_dump (const struct loops *, FILE *,
 			     void (*)(const struct loop *, FILE *, int), int);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]