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]

patch applied to combine_givs


Reviewed by Jim Wilson.

Fri Mar 26 19:42:19 1999  J"orn Rennecke <amylaar@cygnus.co.uk>

	* loop.c (combine_givs): Fix index into can_combine when doing
	benefit adjustment for remaining givs when having combined a giv.

Index: loop.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/loop.c,v
retrieving revision 1.152
diff -p -r1.152 loop.c
*** loop.c	1999/03/25 16:31:16	1.152
--- loop.c	1999/03/26 19:43:35
*************** restart:
*** 7001,7007 ****
  	  for (j = 0; j < giv_count; ++j)
  	    {
  	      int m = stats[j].giv_number;
! 	      if (can_combine[m*giv_count + j])
  		stats[j].total_benefit -= g1->benefit + extra_benefit;
  	    }
  
--- 7001,7007 ----
  	  for (j = 0; j < giv_count; ++j)
  	    {
  	      int m = stats[j].giv_number;
! 	      if (can_combine[m*giv_count + i])
  		stats[j].total_benefit -= g1->benefit + extra_benefit;
  	    }
  


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