Fix condition testing void functions in ipa-split.

gcc/ChangeLog:

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

	* ipa-split.c (consider_split): Fix condition testing void functions.
This commit is contained in:
Jan Hubicka 2021-08-12 20:52:54 +02:00
parent 9017326e19
commit a6da2cddcf

View 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)