This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix PR 63566 part 2


Hi,
this patch fixes heurstics in ipa-split that disables splitting for functions called once
(which may need revisiting anyway). When function has alias, the other uses may come
through that alias.

Bootstrapped/regtested x86_64.
	PR ipa/63566 
	* ipa-split.c (execute_split_functions): Split if function has aliases.
Index: ipa-split.c
===================================================================
--- ipa-split.c	(revision 220509)
+++ ipa-split.c	(working copy)
@@ -1736,6 +1736,7 @@ execute_split_functions (void)
        /* Local functions called once will be completely inlined most of time.  */
        || (!node->callers->next_caller && node->local.local))
       && !node->address_taken
+      && !node->has_aliases_p ()
       && (!flag_lto || !node->externally_visible))
     {
       if (dump_file)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]