public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2887] Fix condition testing void functions in ipa-split.
@ 2021-08-12 18:53 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2021-08-12 18:53 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a6da2cddcf0e959de6666d4d74411af23507f9f9
commit r12-2887-ga6da2cddcf0e959de6666d4d74411af23507f9f9
Author: Jan Hubicka <jh@suse.cz>
Date: Thu Aug 12 20:52:54 2021 +0200
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.
Diff:
---
gcc/ipa-split.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c
index 5e918ee3fbf..c68577d04a9 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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-12 18:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-12 18:53 [gcc r12-2887] Fix condition testing void functions in ipa-split Jan Hubicka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).