* loop.c (combine_givs): Fix index into can_combine when doing
benefit adjustment for remaining givs when having combined a giv.
From-SVN: r25998
+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.
+
Fri Mar 26 11:38:01 1999 Nick Clifton <nickc@cygnus.com>
* config/arm/t-arm-elf (EXTRA_MULTILIB_PARTS): Define.
for (j = 0; j < giv_count; ++j)
{
int m = stats[j].giv_number;
- if (can_combine[m*giv_count + j])
+ if (can_combine[m*giv_count + i])
stats[j].total_benefit -= g1->benefit + extra_benefit;
}