ipa-cp: Avoid ICEs when looking at expanded thunks and unoptimized functions
authorMartin Jambor <mjambor@suse.cz>
Fri, 29 Nov 2019 13:29:35 +0000 (14:29 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 29 Nov 2019 13:29:35 +0000 (14:29 +0100)
commit68188fff88d0c302e6002a8b7450b17e4a26950b
treeb83ee676f2064ca521dc2c76ede5a06872fdd895
parent3edaed39583aeb49cfda7093ed4c0f9fed3fbea0
ipa-cp: Avoid ICEs when looking at expanded thunks and unoptimized functions

2019-11-29  Martin Jambor  <mjambor@suse.cz>

PR ipa/92476
* ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
the summary only if the summary exists.
(find_more_scalar_values_for_callers_subset): Check node_dead in
the summary only if the summary exists.
(ipcp_store_bits_results): Ignore nodes without lattices.
(ipcp_store_vr_results): Likewise.
* cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
header files required by them.
(cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.

From-SVN: r278841
gcc/ChangeLog
gcc/cgraphclones.c
gcc/ipa-cp.c