https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105577
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:b251f8be6b018966edad5daeb45c42fd193b24b4 commit r12-8401-gb251f8be6b018966edad5daeb45c42fd193b24b4 Author: Richard Biener <rguent...@suse.de> Date: Thu May 12 14:03:32 2022 +0200 rtl-optimization/105577 - RTL DSE and non-call EH When one of the first two stages of DSE removes a throwing stmt we have to purge dead EH edges before the DF re-analyze fires off a fast DCE since that cannot cope with the situation. 2022-05-12 Richard Biener <rguent...@suse.de> PR rtl-optimization/105577 * dse.cc (rest_of_handle_dse): Make sure to purge dead EH edges before running fast DCE via df_analyze. (cherry picked from commit dfda40f8147412328f699628a54b0aaa584776e7)