mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 10:10:39 +08:00
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:
parent
35f43fd13c
commit
ab5193833c
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user