diff options
author | Jan Hubicka <jh@suse.cz> | 2005-06-06 14:31:35 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-06-06 12:31:35 +0000 |
commit | a00d11f077e0577ef4c8f6d08f2c8d52d8ec15ca (patch) | |
tree | b33345b9d09639a34fdfad1df1f1c467319d43a7 /gcc/cfgrtl.c | |
parent | bbf59fad2d3953258c0a0c13516f8850b9e26c99 (diff) | |
download | gcc-a00d11f077e0577ef4c8f6d08f2c8d52d8ec15ca.zip gcc-a00d11f077e0577ef4c8f6d08f2c8d52d8ec15ca.tar.gz gcc-a00d11f077e0577ef4c8f6d08f2c8d52d8ec15ca.tar.bz2 |
predict.c (tree_predict_edge): Don't drop useless predictions; check that it is not called too late in the game.
* predict.c (tree_predict_edge): Don't drop useless predictions;
check that it is not called too late in the game.
(gate_estimate_probability): New gate.
(pass_profile): Gate.
* tree-mudflap.c (mf_build_check_statement_for): Do not drop
predictions; update CFG instead.
* cfgrtl.c (rtl_verify_flow_info): Check that predcitions are consumed.
From-SVN: r100662
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 2571d4d..f414def 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -2136,6 +2136,12 @@ rtl_verify_flow_info (void) edge e; edge_iterator ei; + if (bb->predictions) + { + error ("bb prediction set for block %i, but it is not used in RTL land", bb->index); + err = 1; + } + FOR_EACH_EDGE (e, ei, bb->succs) if (e->flags & EDGE_FALLTHRU) break; |