https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88933
--- Comment #18 from Martin Jambor <jamborm at gcc dot gnu.org> --- Author: jamborm Date: Sat Jan 26 22:19:17 2019 New Revision: 268305 URL: https://gcc.gnu.org/viewcvs?rev=268305&root=gcc&view=rev Log: [PR ipa/88933] Careful CFG cleanup in IPA-CP function transformation 2019-01-26 Martin Jambor <mjam...@suse.cz> PR ipa/88933 * tree-inline.c: Include tree-cfgcleanup.h. (delete_unreachable_blocks_update_callgraph): Move... * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph): ...here, make externally visible, make second argument bool, adjust all callers. * tree-cfgcleanup.c: Include cgraph.h. * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph): Declare. * ipa-prop.c: Include tree-cfgcleanup.h. (ipcp_transform_function): Call delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG. testsuite/ * gfortran.dg/gomp/pr88933.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/gomp/pr88933.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-prop.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-cfgcleanup.c trunk/gcc/tree-cfgcleanup.h trunk/gcc/tree-inline.c