aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-utils.c
diff options
context:
space:
mode:
authorMartin Liska <marxin.liska@gmail.com>2013-12-17 22:20:12 +0000
committerMartin Liska <marxin@gcc.gnu.org>2013-12-17 22:20:12 +0000
commit9cec31f43afbdb326fddbc144e9aea63986828e4 (patch)
tree3ad29a01dabd9e49f49f9ebdc04f7655721d6300 /gcc/ipa-utils.c
parent14407011d62da724e88ac0cb30390d3f8fda2b9f (diff)
downloadgcc-9cec31f43afbdb326fddbc144e9aea63986828e4.zip
gcc-9cec31f43afbdb326fddbc144e9aea63986828e4.tar.gz
gcc-9cec31f43afbdb326fddbc144e9aea63986828e4.tar.bz2
Time profile-based function reordering (phase 2).
Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r206070
Diffstat (limited to 'gcc/ipa-utils.c')
-rw-r--r--gcc/ipa-utils.c5
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)