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]

Loop debugging patch



A useful little function to help debug the loop optimiser..

2000-12-30  Michael Hayes  <mhayes@redhat.com>

	* loop.c (debug_loops): New.
	

*** loop.c.orig	Wed Dec 27 14:53:29 2000
--- loop.c	Wed Dec 27 14:54:05 2000
*************** static int iv_add_mult_cost PARAMS ((rtx
*** 237,242 ****
--- 237,243 ----
  
  static void loop_dump_aux PARAMS ((const struct loop *, FILE *, int));
  void debug_loop PARAMS ((const struct loop *));
+ void debug_loops PARAMS ((const struct loops *));
  
  typedef struct rtx_pair
  {
*************** debug_loop (loop)
*** 9432,9435 ****
--- 9433,9445 ----
       const struct loop *loop;
  {
    flow_loop_dump (loop, stderr, loop_dump_aux, 1);
+ }
+ 
+ /* Call this function from the debugger to dump LOOPS.  */
+ 
+ void
+ debug_loops (loops)
+      const struct loops *loops;
+ {
+   flow_loops_dump (loops, stderr, loop_dump_aux, 1);
  }

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