diff options
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 9297280..6641626 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) |