From fd29c0247aa4af7492782e6c933c713c6732b4b0 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 1 Aug 2014 10:20:57 +0200 Subject: IPA ICF pass 1/N * gimple-iterator.h (gsi_next_nonvirtual_phi): New function. * ipa-prop.h (count_formal_params): Global function created from static. * ipa-prop.c (count_formal_params): Likewise. * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge profiles for semantically equivalent functions. * passes.c (do_per_function): If we load body of a function during WPA, this condition should behave same. * varpool.c (ctor_for_folding): More tolerant assert for variable aliases created during WPA. From-SVN: r213417 --- gcc/varpool.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/varpool.c') diff --git a/gcc/varpool.c b/gcc/varpool.c index 74117e2..f1f6a31 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -405,6 +405,7 @@ ctor_for_folding (tree decl) if (decl != real_decl) { gcc_assert (!DECL_INITIAL (decl) + || (node->alias && node->get_alias_target () == real_node) || DECL_INITIAL (decl) == error_mark_node); if (node->weakref) { -- cgit v1.1