diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2007-04-09 08:51:43 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-04-09 06:51:43 +0000 |
commit | c7b852c8a60d46ba79c50b9d2a4f3cba4847c896 (patch) | |
tree | f5af72013d20563b8340bcf3462e935b8ad07bef /gcc/predict.c | |
parent | 782c9150c34a05791f425af5af81c8198cf49176 (diff) | |
download | gcc-c7b852c8a60d46ba79c50b9d2a4f3cba4847c896.zip gcc-c7b852c8a60d46ba79c50b9d2a4f3cba4847c896.tar.gz gcc-c7b852c8a60d46ba79c50b9d2a4f3cba4847c896.tar.bz2 |
cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
* cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
(create_preheaders): Check that loops are available.
(fix_loop_structure): Clean up, improve comments.
* tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
Check that loops are available. Set LOOP_CLOSED_SSA to the loops
state flags.
* tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
* predict.c (tree_estimate_probability): Do not call
calculate_dominance_info. Call create_preheaders.
* tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
flags.
* cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
* cfgloop.h (LOOP_CLOSED_SSA): New constant.
* tree-cfg.c (tree_split_edge): Make an assert more precise.
* tree-ssa-threadedge.c (thread_across_edge): Comment the function
arguments.
From-SVN: r123670
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 097cfb8..7cae1b7 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1290,7 +1290,9 @@ tree_estimate_probability (void) add_noreturn_fake_exit_edges (); connect_infinite_loops_to_exit (); - calculate_dominance_info (CDI_DOMINATORS); + /* We use loop_niter_by_eval, which requires that the loops have + preheaders. */ + create_preheaders (CP_SIMPLE_PREHEADERS); calculate_dominance_info (CDI_POST_DOMINATORS); tree_bb_level_predictions (); |