{
case NOTE:
case CALL_INSN:
+ case DEBUG_INSN:
return 0;
case CODE_LABEL:
if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)
continue;
+ if (GET_CODE (trial) == DEBUG_INSN)
+ continue;
+
if (rtx_sequence *seq = dyn_cast <rtx_sequence *> (pat))
{
/* Stop for a CALL and its delay slots because it is difficult to
if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)
continue;
+ if (GET_CODE (trial) == DEBUG_INSN)
+ continue;
+
if (rtx_sequence *seq = dyn_cast <rtx_sequence *> (pat))
{
bool annul_p = false;
if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)
continue;
+ /* And DEBUG_INSNs never go into delay slots. */
+ if (GET_CODE (trial) == DEBUG_INSN)
+ continue;
+
/* Check for resource conflict first, to avoid unnecessary
splitting. */
if (! insn_references_resource_p (trial, &set, true)
if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)
continue;
+ /* And DEBUG_INSNs do not go in delay slots. */
+ if (GET_CODE (trial) == DEBUG_INSN)
+ continue;
+
/* If this already has filled delay slots, get the insn needing
the delay slots. */
if (GET_CODE (pat) == SEQUENCE)
&& ! can_throw_internal (trial))
{
/* See comment in relax_delay_slots about necessity of using
- next_real_insn here. */
- rtx_insn *new_label = next_real_insn (next_trial);
+ next_real_nondebug_insn here. */
+ rtx_insn *new_label = next_real_nondebug_insn (next_trial);
if (new_label != 0)
new_label = get_label_before (new_label, JUMP_LABEL (trial));
if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)
continue;
+ if (GET_CODE (trial) == DEBUG_INSN)
+ continue;
+
/* If TRIAL conflicts with the insns ahead of it, we lose. Also,
don't separate or copy insns that set and use CC0. */
if (! insn_references_resource_p (trial, &set, true)
/* If the first insn at TARGET_LABEL is redundant with a previous
insn, redirect the jump to the following insn and process again.
- We use next_real_insn instead of next_active_insn so we
+ We use next_real_nondebug_insn instead of next_active_insn so we
don't skip USE-markers, or we'll end up with incorrect
liveness info. */
- trial = next_real_insn (target_label);
+ trial = next_real_nondebug_insn (target_label);
if (trial && GET_CODE (PATTERN (trial)) != SEQUENCE
&& redundant_insn (trial, insn, vNULL)
&& ! can_throw_internal (trial))
{
/* Insert the special USE insn and update dataflow info.
We know "trial" is an insn here as it is the output of
- next_real_insn () above. */
+ next_real_nondebug_insn () above. */
update_block (as_a <rtx_insn *> (trial), tmp);
/* Now emit a label before the special USE insn, and