diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2004-01-29 13:55:25 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2004-01-29 12:55:25 +0000 |
commit | 3ae4a5b127176c0e35527cc0c63362b0d2c4cc5a (patch) | |
tree | 69a5bff3b038494df6cd56929d7df1d3d607e035 /gcc/cfghooks.c | |
parent | 636c7bc4361ec5d67434bdeb9f43d6e54ef12aad (diff) | |
download | gcc-3ae4a5b127176c0e35527cc0c63362b0d2c4cc5a.tar.gz |
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
Diffstat (limited to 'gcc/cfghooks.c')
-rw-r--r-- | gcc/cfghooks.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c index fd361c5fc85..37c1c60fb2e 100644 --- a/gcc/cfghooks.c +++ b/gcc/cfghooks.c @@ -286,6 +286,7 @@ edge 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); @@ -304,7 +305,11 @@ split_block (basic_block bb, void *i) 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. */ |