cgraph.c (cgraph_resolve_speculation): Cut frequency to CGRAPH_FREQ_MAX.
authorJan Hubicka <jh@suse.cz>
Fri, 9 Aug 2013 22:53:00 +0000 (00:53 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 9 Aug 2013 22:53:00 +0000 (22:53 +0000)
commit634ab819546e358bae26a7f798652f1271ae099d
tree8a4fa2cb049df6b6085971ee7b7c3615601cc693
parent537a6f7b4752b04a5ce4cb1fb96f1f1e9c407402
cgraph.c (cgraph_resolve_speculation): Cut frequency to CGRAPH_FREQ_MAX.

* 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.

From-SVN: r201639
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/ipa.c
gcc/lto-cgraph.c
gcc/lto-streamer-in.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/crossmodule-indircall-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-prof/crossmodule-indircall-1a.c [new file with mode: 0644]