Commit ab519383 by Graham Stott Committed by Jeff Law

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
parent 35f43fd1
Thu May 13 01:49:55 1999 Graham Stott <GrahamS@RCP.co.uk> 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 * i386.c (memory_address_info): Correct the scale
factor test. factor test.
......
...@@ -8131,7 +8131,8 @@ maybe_eliminate_biv (bl, loop_start, end, eliminate_p, threshold, insn_count) ...@@ -8131,7 +8131,8 @@ maybe_eliminate_biv (bl, loop_start, end, eliminate_p, threshold, insn_count)
{ {
int regno = REGNO (SET_DEST (set)); 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) && REG_IV_INFO (regno)->src_reg == bl->biv->src_reg)
p = last; p = last;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment