https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97866

--- Comment #3 from Ilya Leoshkevich <iii at linux dot ibm.com> ---
I believe it's already fixed by:

commit 253c415a1acba50711c82693426391743ac18040
Author: Vladimir N. Makarov <vmaka...@redhat.com>
Date:   Sun Nov 15 11:22:19 2020 -0500

    Do not put reload insns in the last empty BB.

    gcc/
            * lra.c (lra_process_new_insns): Don't put reload insns in the
            last empty BB.

Cherry-picking it helps, and the comment from this commit describes what is
happening here: "Do not put reload insns if it is the last BB without actual
insns.  In this case the reload insns can get null BB after emitting".

Reply via email to