Commit 72b0c616 by Richard Kenner Committed by David Edelsohn

Feb 8 14:56:03 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>

Feb  8 14:56:03 1998  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
        * loop.c (strength_reduce): When placing increment for auto-inc
        case, do comparison in loop order.

From-SVN: r17781
parent 2e0dd623
Sun Feb 8 14:56:03 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* loop.c (strength_reduce): When placing increment for auto-inc
case, do comparison in loop order.
Sun Feb 8 13:21:38 1998 John Carr <jfc@mit.edu>
* bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer,
......
......@@ -4114,8 +4114,14 @@ strength_reduce (scan_start, end, loop_top, insn_count,
auto_inc_opt = 1;
}
/* Check for case where increment is before the the address
giv. */
else if (INSN_LUID (v->insn) > INSN_LUID (bl->biv->insn))
giv. Do this test in "loop order". */
else if ((INSN_LUID (v->insn) > INSN_LUID (bl->biv->insn)
&& (INSN_LUID (v->insn) < INSN_LUID (scan_start)
|| (INSN_LUID (bl->biv->insn)
> INSN_LUID (scan_start))))
|| (INSN_LUID (v->insn) < INSN_LUID (scan_start)
&& (INSN_LUID (scan_start)
< INSN_LUID (bl->biv->insn))))
auto_inc_opt = -1;
else
auto_inc_opt = 1;
......
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