+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>
* dwarf2out.c (struct die_struct): Added field decl_id.
split_block (basic_block bb, void *i)
{
basic_block new_bb;
+ edge e;
if (!cfg_hooks->split_block)
internal_error ("%s does not support split_block.", cfg_hooks->name);
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. */