patch to reduce register pressure from strength reduction

Joern Rennecke amylaar@cygnus.co.uk
Sun Feb 28 18:15:00 GMT 1999


Oops, it still needs another hunk for correct operation:

Index: unroll.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/unroll.c,v
retrieving revision 1.101.4.4
diff -p -r1.101.4.4 unroll.c
*** unroll.c	1999/02/01 19:47:34	1.101.4.4
--- unroll.c	1999/02/03 01:21:37
*************** find_splittable_givs (bl, unroll_type, l
*** 2921,2927 ****
  			     value later.  */
  			  v->const_adjust = - INTVAL (XEXP (v->new_reg, 1));
  
! 			  v->new_reg = XEXP (v->new_reg, 0);
  			  if (loop_dump_stream)
  			    fprintf (loop_dump_stream,
  				     "Eliminating constant from giv %d\n",
--- 2921,2927 ----
  			     value later.  */
  			  v->const_adjust = - INTVAL (XEXP (v->new_reg, 1));
  
! 			  new_reg = XEXP (new_reg, 0);
  			  if (loop_dump_stream)
  			    fprintf (loop_dump_stream,
  				     "Eliminating constant from giv %d\n",



More information about the Gcc-patches mailing list