diff options
author | Jan Hubicka <jh@suse.cz> | 2021-08-12 20:52:54 +0200 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2021-08-12 20:52:54 +0200 |
commit | a6da2cddcf0e959de6666d4d74411af23507f9f9 (patch) | |
tree | 807d24f1c4134bd37eb5f5527173f8fe9283d047 /gcc | |
parent | 9017326e19fe278d5f62898cca4682b17f8e8e07 (diff) | |
download | gcc-a6da2cddcf0e959de6666d4d74411af23507f9f9.zip gcc-a6da2cddcf0e959de6666d4d74411af23507f9f9.tar.gz gcc-a6da2cddcf0e959de6666d4d74411af23507f9f9.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ipa-split.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 5e918ee..c68577d 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -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) |