loop.c (check_dbra_loop): Avoid using gen_add2_insn.

�
        * loop.c (check_dbra_loop): Avoid using gen_add2_insn.

From-SVN: r23745
This commit is contained in:
Jeffrey A Law 1998-11-21 21:14:46 +00:00 committed by Jeff Law
parent 02d0eb47e3
commit 225a7e3dab
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Sat Nov 21 22:12:09 1998 Jeffrey A Law (law@cygnus.com)
* loop.c (check_dbra_loop): Avoid using gen_add2_insn.
Sat Nov 21 02:18:38 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (move_movables): Start of libcall might be new loop start.

View File

@ -7061,10 +7061,14 @@ check_dbra_loop (loop_end, insn_count, loop_start)
better to have a testcase first. */
return 0;
/* Add insn to decrement register, and delete insn
that incremented the register. */
p = emit_insn_before (gen_add2_insn (reg, new_add_val),
bl->biv->insn);
/* We may not have a single insn which can increment a reg, so
create a sequence to hold all the insns from expand_inc. */
start_sequence ();
expand_inc (reg, new_add_val);
tem = gen_sequence ();
end_sequence ();
p = emit_insn_before (tem, bl->biv->insn);
delete_insn (bl->biv->insn);
/* Update biv info to reflect its new status. */