https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97972
--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> --- #0 moving_insn_creates_bookkeeping_block_p (through_insn=0x3fffb5b23138, insn=0x3fffb5b736c0) at /home/segher/src/gcc/gcc/sel-sched.c:2031 It crashes here because the insn is not in any BB; which is correct actually, because the insn has been deleted! It is deleted in sel-sched, and it was created there as well. I don't see anything wrong in the earlier debug dump; afaics this was just expose by the 2-2 combine thing.