We have this at the top of the loop, so I don't think it matters: next = NEXT_INSN (insn); if (GET_CODE (insn) != INSN) continue;
However, I think an insn will be skipped if we use NEXT. Perhaps we want PREV? Or the loop might need to be altered to account for this potential skipping.