debugging improvement for strength_reduce

Joern Rennecke amylaar@cygnus.co.uk
Tue Feb 16 16:48:00 GMT 1999


I have applied this patch to the egcs mainline.
Approved by Jim Wilson.

Wed Feb 17 00:43:12 1999  J"orn Rennecke <amylaar@cygnus.co.uk>

	* loop.c (strength_reduce): Dump biv increment -> giv conversions.

Index: loop.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/loop.c,v
retrieving revision 1.183
diff -p -r1.183 loop.c
*** loop.c	1999/02/12 18:36:26	1.183
--- loop.c	1999/02/12 21:34:32
*************** strength_reduce (scan_start, end, loop_t
*** 4257,4262 ****
--- 4257,4267 ----
  		 This will not prevent the biv from being eliminated.  */
  	      if (v->lifetime == 0)
  		v->ignore = 1;
+ 
+ 	      if (loop_dump_stream)
+ 		fprintf (loop_dump_stream,
+ 			 "Increment %d of biv %d converted to giv %d.\n\n",
+ 			 INSN_UID (v->insn), old_regno, new_regno);
  	    }
  	}
      }



More information about the Gcc-patches mailing list