This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch applied to combine_givs
- To: egcs-patches at egcs dot cygnus dot com
- Subject: patch applied to combine_givs
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Fri, 26 Mar 1999 19:47:35 +0000 (GMT)
- Cc: amylaar at cygnus dot co dot uk
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;
}