diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-09 22:53:00 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-09 22:53:00 +0000 |
commit | 6a261305108413215d49b3914ac78faa5572231c (patch) | |
tree | 8a4fa2cb049df6b6085971ee7b7c3615601cc693 /gcc/lto-streamer-in.c | |
parent | 2ebd387eab05c472bd95be08fbf8ce1986d012ab (diff) | |
download | gcc-6a261305108413215d49b3914ac78faa5572231c.tar.gz |
* cgraph.c (cgraph_resolve_speculation): Cut frequency to
CGRAPH_FREQ_MAX.
(dump_cgraph_node): Dump profile-id.
* cgraph.h (cgraph_indirect_call_info): Add common_target_id
and common_target_probability.
* lto-cgraph.c (lto_output_edge): Stream common targets.
(lto_output_node): Stream profile ids.
(input_node): Stream profile ids.
(input_edge): Stream common targets.
* lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
* ipa.c: Include value-prof.h
(ipa_profile_generate_summary): Turn indirect call statement histograms
into common targets.
(ipa_profile): Turn common targets into speculative edges.
* gcc.dg/tree-prof/crossmodule-indircall-1.c: New testcase.
* gcc.dg/tree-prof/crossmodule-indircall-1a.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201639 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r-- | gcc/lto-streamer-in.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 0684cdaa7ba..64303593272 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -765,18 +765,18 @@ fixup_call_stmt_edges_1 (struct cgraph_node *node, gimple *stmts, for (cedge = node->callees; cedge; cedge = cedge->next_callee) { if (gimple_stmt_max_uid (fn) < cedge->lto_stmt_uid) - fatal_error ("Cgraph edge statement index out of range"); + fatal_error ("Cgraph edge statement index out of range"); cedge->call_stmt = stmts[cedge->lto_stmt_uid - 1]; if (!cedge->call_stmt) - fatal_error ("Cgraph edge statement index not found"); + fatal_error ("Cgraph edge statement index not found"); } for (cedge = node->indirect_calls; cedge; cedge = cedge->next_callee) { if (gimple_stmt_max_uid (fn) < cedge->lto_stmt_uid) - fatal_error ("Cgraph edge statement index out of range"); + fatal_error ("Cgraph edge statement index out of range"); cedge->call_stmt = stmts[cedge->lto_stmt_uid - 1]; if (!cedge->call_stmt) - fatal_error ("Cgraph edge statement index not found"); + fatal_error ("Cgraph edge statement index not found"); } for (i = 0; ipa_ref_list_reference_iterate (&node->symbol.ref_list, i, ref); |