Commit ac224823 by Richard Kenner

*** empty log message ***

From-SVN: r1043
parent b4ccaa16
...@@ -3257,6 +3257,8 @@ relax_delay_slots (first) ...@@ -3257,6 +3257,8 @@ relax_delay_slots (first)
#endif #endif
) )
{ {
int i;
/* All this insn does is execute its delay list and jump to the /* All this insn does is execute its delay list and jump to the
following insn. So delete the jump and just execute the delay following insn. So delete the jump and just execute the delay
list insns. list insns.
...@@ -3266,6 +3268,11 @@ relax_delay_slots (first) ...@@ -3266,6 +3268,11 @@ relax_delay_slots (first)
This allows the count of the jump target to be properly This allows the count of the jump target to be properly
decremented. */ decremented. */
/* Clear the from target bit, since these insns are no longer
in delay slots. */
for (i = 0; i < XVECLEN (pat, 0); i++)
INSN_FROM_TARGET_P (XVECEXP (pat, 0, i)) = 0;
trial = PREV_INSN (insn); trial = PREV_INSN (insn);
delete_insn (insn); delete_insn (insn);
emit_insn_after (pat, trial); emit_insn_after (pat, trial);
......
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