Message ID | 87d34isdvd.fsf@redhat.com |
---|---|
State | New |
Headers | show |
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.
Index: gcc/config/mep/mep.c =================================================================== --- gcc/config/mep/mep.c (revision 189064) +++ gcc/config/mep/mep.c (working copy) @@ -5096,7 +5096,8 @@ follow, where)) { count ++; - next = delete_insn (insn); + next = NEXT_INSN (insn); + delete_insn (insn); if (dump_file) { fprintf (dump_file, "\n----- Success! new insn:\n\n");