summaryrefslogtreecommitdiff
path: root/gcc/ipa-split.c
diff options
context:
space:
mode:
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-17 22:20:12 +0000
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2013-12-17 22:20:12 +0000
commitaf48f0b184090da9bd5bd5f959e2387385f92b8c (patch)
tree3ad29a01dabd9e49f49f9ebdc04f7655721d6300 /gcc/ipa-split.c
parentcf4f5d5e5a8bffc5c58b5dc64ac035adf9c98e1d (diff)
downloadgcc-af48f0b184090da9bd5bd5f959e2387385f92b8c.tar.gz
Time profile-based function reordering (phase 2).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206070 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r--gcc/ipa-split.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c
index 6d9334882ed..43758b6db7a 100644
--- a/gcc/ipa-split.c
+++ b/gcc/ipa-split.c
@@ -1234,6 +1234,10 @@ split_function (struct split_point *split_point)
!split_part_return_p,
split_point->split_bbs,
split_point->entry_bb, "part");
+
+ /* Let's take a time profile for splitted function. */
+ node->tp_first_run = cur_node->tp_first_run + 1;
+
/* For usual cloning it is enough to clear builtin only when signature
changes. For partial inlining we however can not expect the part
of builtin implementation to have same semantic as the whole. */