aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-split.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r--gcc/ipa-split.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c
index a5b4c41..7ebd515 100644
--- a/gcc/ipa-split.c
+++ b/gcc/ipa-split.c
@@ -1752,6 +1752,12 @@ execute_split_functions (void)
fprintf (dump_file, "Not splitting: main function.\n");
return 0;
}
+ if (node->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED)
+ {
+ if (dump_file)
+ fprintf (dump_file, "Not splitting: function is unlikely executed.\n");
+ return 0;
+ }
/* This can be relaxed; function might become inlinable after splitting
away the uninlinable part. */
if (ipa_fn_summaries