Commit e76d2376 by J"orn Rennecke Committed by Joern Rennecke

loop.c (strength_reduce): When doing biv->giv conversion, fix up reg_biv_class.

	* loop.c (strength_reduce): When doing biv->giv conversion, fix up
	reg_biv_class.

From-SVN: r28413
parent 39c440fc
Mon Aug 2 23:46:45 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (strength_reduce): When doing biv->giv conversion, fix up
reg_biv_class.
1999-08-02 Jakub Jelinek <jj@ultra.linux.cz> 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
* config/float-sparc.h: New file. * config/float-sparc.h: New file.
......
...@@ -4072,6 +4072,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, ...@@ -4072,6 +4072,7 @@ strength_reduce (scan_start, end, loop_top, insn_count,
fprintf (loop_dump_stream, "is giv of biv %d\n", bl2->regno); fprintf (loop_dump_stream, "is giv of biv %d\n", bl2->regno);
/* Let this giv be discovered by the generic code. */ /* Let this giv be discovered by the generic code. */
REG_IV_TYPE (bl->regno) = UNKNOWN_INDUCT; REG_IV_TYPE (bl->regno) = UNKNOWN_INDUCT;
reg_biv_class[bl->regno] = NULL_PTR;
/* We can get better optimization if we can move the giv setting /* We can get better optimization if we can move the giv setting
before the first giv use. */ before the first giv use. */
if (dominator if (dominator
...@@ -4123,7 +4124,13 @@ strength_reduce (scan_start, end, loop_top, insn_count, ...@@ -4123,7 +4124,13 @@ strength_reduce (scan_start, end, loop_top, insn_count,
} }
/* Remove this biv from the chain. */ /* Remove this biv from the chain. */
if (bl->next) if (bl->next)
{
/* We move the following giv from *bl->next into *bl.
We have to update reg_biv_class for that moved biv
to point to its new address. */
*bl = *bl->next; *bl = *bl->next;
reg_biv_class[bl->regno] = bl;
}
else else
{ {
*backbl = 0; *backbl = 0;
......
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