diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-17 22:20:12 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-17 22:20:12 +0000 |
commit | af48f0b184090da9bd5bd5f959e2387385f92b8c (patch) | |
tree | 3ad29a01dabd9e49f49f9ebdc04f7655721d6300 /gcc/ipa-utils.c | |
parent | cf4f5d5e5a8bffc5c58b5dc64ac035adf9c98e1d (diff) | |
download | gcc-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-utils.c')
-rw-r--r-- | gcc/ipa-utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ipa-utils.c b/gcc/ipa-utils.c index 92972803ba0..66416268f57 100644 --- a/gcc/ipa-utils.c +++ b/gcc/ipa-utils.c @@ -655,6 +655,11 @@ ipa_merge_profiles (struct cgraph_node *dst, return; if (src->frequency < dst->frequency) src->frequency = dst->frequency; + + /* Time profiles are merged. */ + if (dst->tp_first_run > src->tp_first_run && src->tp_first_run) + dst->tp_first_run = src->tp_first_run; + if (!dst->count) return; if (cgraph_dump_file) |