https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100590
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:490ffb47ad10df1793c4894c7c888d7a10576f1a commit r11-8488-g490ffb47ad10df1793c4894c7c888d7a10576f1a 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. (cherry picked from commit c81704b359283bb54696755ead881ab04136da94)