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:
parent
9017326e19
commit
a6da2cddcf
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue