Commit 4762f561 by Jan Hubicka Committed by Jan Hubicka

* cgraphunit.c (verify_edge_count_and_frequency): Bounds check.

From-SVN: r179430
parent 467a8db0
2011-10-02 Jan Hubicka <jh@suse.cz> 2011-10-02 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (verify_edge_count_and_frequency): Bounds check.
* cgraphunit.c (ipa_passes): Remove unrechable nodes. * cgraphunit.c (ipa_passes): Remove unrechable nodes.
* lto-streamer-out.c (produce_symtab): Skip unused extern declarations. * lto-streamer-out.c (produce_symtab): Skip unused extern declarations.
* ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external * ipa.c (cgraph_remove_unreachable_nodes): Do not assume that external
...@@ -426,7 +426,9 @@ verify_edge_count_and_frequency (struct cgraph_edge *e) ...@@ -426,7 +426,9 @@ verify_edge_count_and_frequency (struct cgraph_edge *e)
Remove this once edges are actualy removed from the function at that time. */ Remove this once edges are actualy removed from the function at that time. */
&& (e->frequency && (e->frequency
|| (inline_edge_summary_vec || (inline_edge_summary_vec
&& !inline_edge_summary (e)->predicate)) && ((VEC_length(inline_edge_summary_t, inline_edge_summary_vec)
<= (unsigned) e->uid)
|| !inline_edge_summary (e)->predicate)))
&& (e->frequency && (e->frequency
!= compute_call_stmt_bb_frequency (e->caller->decl, != compute_call_stmt_bb_frequency (e->caller->decl,
gimple_bb (e->call_stmt)))) gimple_bb (e->call_stmt))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment