Commit 3ae4a5b1 by Zdenek Dvorak Committed by Zdenek Dvorak

cfghooks.c (split_block): Set probability and count of the new edge.

	* cfghooks.c (split_block): Set probability and count of the
	new edge.

From-SVN: r76858
parent 636c7bc4
2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* cfghooks.c (split_block): Set probability and count of the
new edge.
2005-01-29 Josef Zlomek <zlomekj@suse.cz> 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
* dwarf2out.c (struct die_struct): Added field decl_id. * dwarf2out.c (struct die_struct): Added field decl_id.
......
...@@ -286,6 +286,7 @@ edge ...@@ -286,6 +286,7 @@ edge
split_block (basic_block bb, void *i) split_block (basic_block bb, void *i)
{ {
basic_block new_bb; basic_block new_bb;
edge e;
if (!cfg_hooks->split_block) if (!cfg_hooks->split_block)
internal_error ("%s does not support split_block.", cfg_hooks->name); internal_error ("%s does not support split_block.", cfg_hooks->name);
...@@ -304,7 +305,11 @@ split_block (basic_block bb, void *i) ...@@ -304,7 +305,11 @@ split_block (basic_block bb, void *i)
set_immediate_dominator (CDI_DOMINATORS, new_bb, bb); set_immediate_dominator (CDI_DOMINATORS, new_bb, bb);
} }
return make_edge (bb, new_bb, EDGE_FALLTHRU); e = make_edge (bb, new_bb, EDGE_FALLTHRU);
e->probability = REG_BR_PROB_BASE;
e->count = bb->count;
return e;
} }
/* Splits block BB just after labels. The newly created edge is returned. */ /* Splits block BB just after labels. The newly created edge is returned. */
......
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