> This patch is also necessary for my new delay-slot scheduler to keep > basic block boundaries correctly up-to-date. The emit-rtl API does > that already. > > Cross-tested powerpc64 x mips. Currently running bootstrap&test on > sparc64-unknown-linux-gnu. OK if it passes?
Yes, modulo @@ -538,6 +502,8 @@ emit_delay_sequence (rtx insn, rtx list, int lengt INSN_LOCATION (seq_insn) = INSN_LOCATION (tem); INSN_LOCATION (tem) = 0; + /* Remove any REG_DEAD notes because we can't rely on them now + that the insn has been moved. */ for (note = REG_NOTES (tem); note; note = next) { next = XEXP (note, 1); Did you mean to move the comment instead of duplicating it? -- Eric Botcazou