aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorMartin Liska <marxin.liska@gmail.com>2013-11-11 23:21:02 +0000
committerMartin Liska <marxin@gcc.gnu.org>2013-11-11 23:21:02 +0000
commit86ce5d2fc19438f92afcba1273153071eab48da4 (patch)
tree91cab9d80f43cc346699b11a23a3f3458b7ab15e /gcc/lto
parent9544822809268ed981b10d31efd6225361ba537b (diff)
downloadgcc-86ce5d2fc19438f92afcba1273153071eab48da4.zip
gcc-86ce5d2fc19438f92afcba1273153071eab48da4.tar.gz
gcc-86ce5d2fc19438f92afcba1273153071eab48da4.tar.bz2
Time profiler introduced.
Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r204690
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/lto-symtab.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/lto/lto-symtab.c b/gcc/lto/lto-symtab.c
index ced6cf9..2ebc07d 100644
--- a/gcc/lto/lto-symtab.c
+++ b/gcc/lto/lto-symtab.c
@@ -29,6 +29,7 @@ along with GCC; see the file COPYING3. If not see
#include "plugin-api.h"
#include "lto-streamer.h"
#include "ipa-utils.h"
+#include "ipa-inline.h"
/* Replace the cgraph node NODE with PREVAILING_NODE in the cgraph, merging
all edges and removing the old node. */
@@ -84,6 +85,12 @@ lto_cgraph_replace_node (struct cgraph_node *node,
if (node->decl != prevailing_node->decl)
cgraph_release_function_body (node);
+ /* Time profile merging */
+ if (node->tp_first_run)
+ prevailing_node->tp_first_run = prevailing_node->tp_first_run ?
+ MIN (prevailing_node->tp_first_run, node->tp_first_run) :
+ node->tp_first_run;
+
/* Finally remove the replaced node. */
cgraph_remove_node (node);
}