Commit f4a3cd05 by Richard Kenner

(try_split): Don't try to recursively split deleted insn.

From-SVN: r7143
parent e1469d0d
...@@ -2020,10 +2020,12 @@ try_split (pat, trial, last) ...@@ -2020,10 +2020,12 @@ try_split (pat, trial, last)
/* Recursively call try_split for each new insn created; by the /* Recursively call try_split for each new insn created; by the
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. */
for (tem = NEXT_INSN (before); tem != after; for (tem = NEXT_INSN (before); tem != after;
tem = NEXT_INSN (tem)) tem = NEXT_INSN (tem))
tem = try_split (PATTERN (tem), tem, 1); if (! INSN_DELETED_P (tem))
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. */
else if (rtx_equal_p (seq, pat)) else if (rtx_equal_p (seq, pat))
......
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