https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92476
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> --- Author: jamborm Date: Fri Nov 29 13:29:35 2019 New Revision: 278841 URL: https://gcc.gnu.org/viewcvs?rev=278841&root=gcc&view=rev Log: ipa-cp: Avoid ICEs when looking at expanded thunks and unoptimized functions 2019-11-29 Martin Jambor <mjam...@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. Modified: trunk/gcc/ChangeLog trunk/gcc/cgraphclones.c trunk/gcc/ipa-cp.c