https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100308
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:d941869a62060182d5ffe265144bdd87d8943c7a commit r11-8351-gd941869a62060182d5ffe265144bdd87d8943c7a Author: Richard Biener <rguent...@suse.de> Date: Wed Apr 28 09:34:03 2021 +0200 ipa/100308 - properly update the callgraph when pruning EH in IPA CP This makes sure to fall into the delete_unreachable_blocks_update_callgraph handling to remove blocks becoming unreachable when removing EH edges by tracking blocks to need EH cleanup and doing that after releasing dominance info. This fixes an ICE seen with gfortran.dg/gomp/pr88933.f90 when enhancing DSE. 2021-04-28 Richard Biener <rguent...@suse.de> PR ipa/100308 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children): Track blocks to cleanup EH in new m_need_eh_cleanup. (ipcp_modif_dom_walker::cleanup_eh): New. (ipcp_transform_function): Release dominator info before doing EH cleanup. (cherry picked from commit 8ddce3f7d0db060885df24e41dd289173ec774a0)