aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-profile.c
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel1@de.ibm.com>2004-10-28 16:19:26 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2004-10-28 16:19:26 +0000
commitf3df9541367d65608af843d2a56f4519343e769e (patch)
tree5b78eb120055abb834a6216175418c0de85cefd4 /gcc/tree-profile.c
parent86ce0e3d22f4e6c973397e0fd65b2cf0dbfdf633 (diff)
downloadgcc-f3df9541367d65608af843d2a56f4519343e769e.zip
gcc-f3df9541367d65608af843d2a56f4519343e769e.tar.gz
gcc-f3df9541367d65608af843d2a56f4519343e769e.tar.bz2
profile.c (branch_prob): Call to init_edge_profiler added.
* profile.c (branch_prob): Call to init_edge_profiler added. * rtl-profile.c (rtl_init_edge_profiler): New function. (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with call to safe_insert_insn_on_edge. (rtl_profile_hooks): rtl_init_edge_profiler added. * tree-profile.c (tree_init_edge_profiler): New function. (tree_profile_hooks): tree_init_edge_profiler added. * value-prof.h (profile_hooks) init_edge_profiler prototype added. From-SVN: r89764
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r--gcc/tree-profile.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c
index 00c36e2..145c721 100644
--- a/gcc/tree-profile.c
+++ b/gcc/tree-profile.c
@@ -69,6 +69,14 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "value-prof.h"
+
+/* Do initialization work for the edge profiler. */
+
+static void
+tree_init_edge_profiler (void)
+{
+}
+
/* Output instructions as GIMPLE trees to increment the edge
execution count, and insert them on E. We rely on
bsi_insert_on_edge to preserve the order. */
@@ -195,6 +203,7 @@ struct tree_opt_pass pass_tree_profile =
struct profile_hooks tree_profile_hooks =
{
+ tree_init_edge_profiler, /* init_edge_profiler */
tree_gen_edge_profiler, /* gen_edge_profiler */
tree_gen_interval_profiler, /* gen_interval_profiler */
tree_gen_pow2_profiler, /* gen_pow2_profiler */