loop.c (maybe_eliminate_biv): Check regno against max_reg_before_loop.

* loop.c (maybe_eliminate_biv): Check regno against
        max_reg_before_loop.

From-SVN: r26918
This commit is contained in:
Graham Stott 1999-05-12 18:57:05 -06:00 committed by Jeff Law
parent 35f43fd13c
commit ab5193833c
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Thu May 13 01:49:55 1999 Graham Stott <GrahamS@RCP.co.uk>
* loop.c (maybe_eliminate_biv): Check regno against
max_reg_before_loop.
* i386.c (memory_address_info): Correct the scale
factor test.

View File

@ -8131,7 +8131,8 @@ maybe_eliminate_biv (bl, loop_start, end, eliminate_p, threshold, insn_count)
{
int regno = REGNO (SET_DEST (set));
if (REG_IV_TYPE (regno) == GENERAL_INDUCT
if (regno < max_reg_before_loop
&& REG_IV_TYPE (regno) == GENERAL_INDUCT
&& REG_IV_INFO (regno)->src_reg == bl->biv->src_reg)
p = last;
}