Commit 1b4d9ecd by Richard Earnshaw Committed by Jeff Law

final.c (shorten_branches): Don't try to split an insn that has been deleted.

H
        * final.c (shorten_branches): Don't try to split an insn that has
        been deleted.

From-SVN: r27691
parent e598cdff
...@@ -999,7 +999,9 @@ shorten_branches (first) ...@@ -999,7 +999,9 @@ shorten_branches (first)
if (GET_RTX_CLASS (GET_CODE (insn)) == 'i') if (GET_RTX_CLASS (GET_CODE (insn)) == 'i')
{ {
rtx old = insn; rtx old = insn;
insn = try_split (PATTERN (old), old, 1); /* Don't split the insn if it has been deleted. */
if (! INSN_DELETED_P (old))
insn = try_split (PATTERN (old), old, 1);
/* When not optimizing, the old insn will be still left around /* When not optimizing, the old insn will be still left around
with only the 'deleted' bit set. Transform it into a note with only the 'deleted' bit set. Transform it into a note
to avoid confusion of subsequent processing. */ to avoid confusion of subsequent processing. */
......
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