aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-03-16 20:39:14 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-03-16 19:39:14 +0000
commit7a161d5be3314a90bcb5870986edc8b230446c46 (patch)
tree9a850b8072dd5819878a551ca92ae4b3d348c994 /gcc/tree-sra.c
parentf8c29d983969a1dd7a8563ba0f2432733e88e76f (diff)
downloadgcc-7a161d5be3314a90bcb5870986edc8b230446c46.zip
gcc-7a161d5be3314a90bcb5870986edc8b230446c46.tar.gz
gcc-7a161d5be3314a90bcb5870986edc8b230446c46.tar.bz2
tree-sra.c (ipa_sra_preliminary_function_checks): Use DECL_ONE_ONLY to check if decl is one only.
* tree-sra.c (ipa_sra_preliminary_function_checks): Use DECL_ONE_ONLY to check if decl is one only. * ipa-split.c (consider_split): Limit splitt of one only functions. From-SVN: r221466
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index a49e950..91b72fb 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -5109,7 +5109,7 @@ ipa_sra_preliminary_function_checks (struct cgraph_node *node)
return false;
}
- if ((DECL_COMDAT (node->decl) || DECL_EXTERNAL (node->decl))
+ if ((DECL_ONE_ONLY (node->decl) || DECL_EXTERNAL (node->decl))
&& inline_summaries->get (node)->size >= MAX_INLINE_INSNS_AUTO)
{
if (dump_file)