* loop.c (maybe_eliminate_biv): Check regno against
max_reg_before_loop.
From-SVN: r26918
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.
{
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;
}