emit-rtl.c (try_split): Use delete_insns.

* emit-rtl.c (try_split): Use delete_insns.
	* recog.c (split_all_insns): Fix terminating condition.

From-SVN: r50778
This commit is contained in:
Jan Hubicka 2002-03-14 18:09:49 +00:00 committed by Jan Hubicka
parent b07ac17fa6
commit 83a4940733
3 changed files with 9 additions and 8 deletions

View file

@ -1,3 +1,8 @@
Thu Mar 14 19:04:29 CET 2002 Jan HUbicka <jh@suse.cz>
* emit-rtl.c (try_split): Use delete_insns.
* recog.c (split_all_insns): Fix terminating condition.
2002-03-14 Richard Earnshaw <rearnsha@arm.com>
Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>

View file

@ -3076,7 +3076,7 @@ try_split (pat, trial, last)
tem = emit_insn_after (seq, trial);
delete_related_insns (trial);
delete_insn (trial);
if (has_barrier)
emit_barrier_after (tem);

View file

@ -2735,14 +2735,16 @@ split_all_insns (upd_life)
{
basic_block bb = BASIC_BLOCK (i);
rtx insn, next;
bool finish = false;
for (insn = bb->head; insn ; insn = next)
for (insn = bb->head; !finish ; insn = next)
{
rtx last;
/* Can't use `next_real_insn' because that might go across
CODE_LABELS and short-out basic blocks. */
next = NEXT_INSN (insn);
finish = (insn == bb->end);
last = split_insn (insn);
if (last)
{
@ -2756,13 +2758,7 @@ split_all_insns (upd_life)
changed = 1;
insn = last;
}
if (next == NEXT_INSN (bb->end))
break;
}
if (insn == NULL)
abort ();
}
if (changed)