]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix condition testing void functions in ipa-split.
authorJan Hubicka <jh@suse.cz>
Thu, 12 Aug 2021 18:52:54 +0000 (20:52 +0200)
committerJan Hubicka <jh@suse.cz>
Thu, 12 Aug 2021 18:52:54 +0000 (20:52 +0200)
gcc/ChangeLog:

2021-08-12  Jan Hubicka  <hubicka@ucw.cz>

* ipa-split.c (consider_split): Fix condition testing void functions.

gcc/ipa-split.c

index 5e918ee3fbf6a86bd7fbfab6293f90c146b74977..c68577d04a9940380c813dfb1821bc4b62bc4c1f 100644 (file)
@@ -546,8 +546,9 @@ consider_split (class split_point *current, bitmap non_ssa_vars,
            }
        }
     }
-  if (!VOID_TYPE_P (TREE_TYPE (current_function_decl)))
-    call_overhead += estimate_move_cost (TREE_TYPE (current_function_decl),
+  if (!VOID_TYPE_P (TREE_TYPE (TREE_TYPE (current_function_decl))))
+    call_overhead += estimate_move_cost (TREE_TYPE (TREE_TYPE
+                                                (current_function_decl)),
                                         false);
 
   if (current->split_size <= call_overhead)