https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103441
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Jambor <jamb...@gcc.gnu.org>: https://gcc.gnu.org/g:9e2e47391b316493b52fbb47b4b992b0863795dd commit r12-5554-g9e2e47391b316493b52fbb47b4b992b0863795dd Author: Martin Jambor <mjam...@suse.cz> Date: Sat Nov 27 01:00:56 2021 +0100 ipa: Fix CFG fix-up in IPA-CP transform phase (PR 103441) I forgot that IPA passes before ipa-inline must not return TODO_cleanup_cfg from their transformation function because ordinary CFG cleanup does not remove call graph edges associated with removed call statements but must use delete_unreachable_blocks_update_callgraph instead. This patch fixes that error. gcc/ChangeLog: 2021-11-26 Martin Jambor <mjam...@suse.cz> PR ipa/103441 * ipa-prop.c (ipcp_transform_function): Call delete_unreachable_blocks_update_callgraph instead of returning TODO_cleanup_cfg.