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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:c81704b359283bb54696755ead881ab04136da94

commit r12-866-gc81704b359283bb54696755ead881ab04136da94
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue May 18 10:26:45 2021 +0200

    regcprop: Avoid DCE of asm goto [PR100590]

    The following testcase ICEs, because copyprop_hardreg_forward_1 decides
    to DCE asm goto with REG_UNUSED notes (because the output is unused and
    asm isn't volatile).  But that DCE just removes the asm goto, leaving
    a bb with two successors and no insn at the end that would allow that.

    The following patch makes sure we drop that way only INSNs and not
    JUMP_INSNs or CALL_INSNs.

    2021-05-18  Jakub Jelinek  <ja...@redhat.com>

            PR rtl-optimization/100590
            * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
            they are NONJUMP_INSN_P.

            * gcc.dg/pr100590.c: New test.

Reply via email to