https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94618
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #5) > Created attachment 48293 [details] > gcc10-pr94618.patch > > Untested fix. Looks logically correct - but are there no helpers for this on the RTL side? Like LAST_NONDEBUG_INSN (BB) or so? Or skip_debug_insns_until_bb_end? Possibly this is the only such case of course ...