Commit 23886015 by Richard Henderson Committed by Richard Henderson

* emit-rtl.c (try_split): Don't try to split non-instructions.

From-SVN: r24813
parent 7bdbfa05
Thu Jan 21 21:53:36 1999 Richard Henderson <rth@cygnus.com>
* emit-rtl.c (try_split): Don't try to split non-instructions.
Thu Jan 21 23:47:30 EST 1999 Andrew MacLeod <amacleod@cygnus.com> Thu Jan 21 23:47:30 EST 1999 Andrew MacLeod <amacleod@cygnus.com>
* expr.c (emit_push_insn): Fix dumb typo. * expr.c (emit_push_insn): Fix dumb typo.
......
...@@ -2265,12 +2265,11 @@ try_split (pat, trial, last) ...@@ -2265,12 +2265,11 @@ try_split (pat, trial, last)
time control returns here that insn will be fully split, so time control returns here that insn will be fully split, so
set LAST and continue from the insn after the one returned. set LAST and continue from the insn after the one returned.
We can't use next_active_insn here since AFTER may be a note. We can't use next_active_insn here since AFTER may be a note.
Ignore deleted insns, which can be occur if not optimizing, Ignore deleted insns, which can be occur if not optimizing. */
and ignore BARRIERs which can occur if we split the insn
immediately before a BARRIER. */
for (tem = NEXT_INSN (before); tem != after; for (tem = NEXT_INSN (before); tem != after;
tem = NEXT_INSN (tem)) tem = NEXT_INSN (tem))
if (! INSN_DELETED_P (tem) && GET_CODE (tem) != BARRIER) if (! INSN_DELETED_P (tem)
&& GET_RTX_CLASS (GET_CODE (tem)) == 'i')
tem = try_split (PATTERN (tem), tem, 1); tem = try_split (PATTERN (tem), tem, 1);
} }
/* Avoid infinite loop if the result matches the original pattern. */ /* Avoid infinite loop if the result matches the original pattern. */
......
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