aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-cp.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2011-04-19 16:23:38 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2011-04-19 14:23:38 +0000
commite6416b305e7c6d1e6d4b1f92bc5875f3c8f4e729 (patch)
treee7abfb685c06837c0897e65f060f8fea73d402cb /gcc/ipa-cp.c
parentbe7f782278465ae177c717f3b898906201c2471c (diff)
downloadgcc-e6416b305e7c6d1e6d4b1f92bc5875f3c8f4e729.zip
gcc-e6416b305e7c6d1e6d4b1f92bc5875f3c8f4e729.tar.gz
gcc-e6416b305e7c6d1e6d4b1f92bc5875f3c8f4e729.tar.bz2
cgraph.h (cgraph_optimize_for_size_p): Declare.
* cgraph.h (cgraph_optimize_for_size_p): Declare. * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p. * predict.c (cgraph_optimize_for_size_p): Break out from ... (optimize_function_for_size_p) ... here. From-SVN: r172711
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r--gcc/ipa-cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c
index d8de9b7..0c05711 100644
--- a/gcc/ipa-cp.c
+++ b/gcc/ipa-cp.c
@@ -1410,7 +1410,7 @@ ipcp_insert_stage (void)
if (new_size + growth > max_new_size)
break;
if (growth
- && optimize_function_for_size_p (DECL_STRUCT_FUNCTION (node->decl)))
+ && cgraph_optimize_for_size_p (node))
{
if (dump_file)
fprintf (dump_file, "Not versioning, cold code would grow");