[PR ipa/88933] Careful CFG cleanup in IPA-CP function transformation
authorMartin Jambor <mjambor@suse.cz>
Sat, 26 Jan 2019 22:19:17 +0000 (23:19 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Sat, 26 Jan 2019 22:19:17 +0000 (23:19 +0100)
commit95a2ed0325864069bb0368d75bcf85a8b22c4127
tree04c852d893bcc50234c3b2bead6edb14dabc70bd
parente4e13e261060dde55de4f7135fe09a816a51f929
[PR ipa/88933] Careful CFG cleanup in IPA-CP function transformation

2019-01-26  Martin Jambor  <mjambor@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.

From-SVN: r268305
gcc/ChangeLog
gcc/ipa-prop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr88933.f90 [new file with mode: 0644]
gcc/tree-cfgcleanup.c
gcc/tree-cfgcleanup.h
gcc/tree-inline.c