aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2014-10-22 14:26:56 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>2014-10-22 14:26:56 +0000
commit893479def2f2b98d16e7311fe3bfff58ed003467 (patch)
tree9d61392a70f0091f38c55c6d45211065e1032b6c /gcc/cgraph.h
parent4a7fca26b4c148457bef6da0975f1122aa106271 (diff)
downloadgcc-893479def2f2b98d16e7311fe3bfff58ed003467.zip
gcc-893479def2f2b98d16e7311fe3bfff58ed003467.tar.gz
gcc-893479def2f2b98d16e7311fe3bfff58ed003467.tar.bz2
cfgbuild.h: New.
2014-10-22 Andrew MacLeod <amacleod@redhat.com> * cfgbuild.h: New. Add prototypes for cfgbuild.c. * cfgcleanup.h: New. Add prototypes for cfgcleanup.c. * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c. * dominance.h: New. Add prototypes for dominance.c. * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it. * cfghooks.h: (struct profile_record) Relocate here. Relocate 2 prototypes from basic-block.h. * basic-block.h: Move prototypes and struct to new header files. Include cfgbuild.h, cfgcleanup.h, and dominance.h. * rtl.h: Move a few prototypes to new header files. * cfgcleanup.c (merge_memattrs): Make static. * genopinit.c (main): Add predict.h to list of includes. * predict.h: Update prototype list to match predict.c. * predict.c (maybe_hot_count_p): Export. (cgraph_edge::maybe_hot_p): Move to cgraph.c. (cgraph_node::optimize_for_size_p): Move to cgraph.h. * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here. * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here. * profile.h: Adjust prototypes. * ifcvt.h: New. Relocate struct ce_if_block here. * ifcvt.c: Include ifcvt.h. * config/frv/frv.c: Include ifcvt.h. * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters. From-SVN: r216559
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 2a55e17..be1f10e 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -2708,6 +2708,19 @@ cgraph_node::mark_force_output (void)
gcc_checking_assert (!global.inlined_to);
}
+/* Return true if function should be optimized for size. */
+
+inline bool
+cgraph_node::optimize_for_size_p (void)
+{
+ if (optimize_size)
+ return true;
+ if (frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED)
+ return true;
+ else
+ return false;
+}
+
inline symtab_node * symtab_node::get_create (tree node)
{
if (TREE_CODE (node) == VAR_DECL)