From: Jan Hubicka Date: Sun, 14 Oct 2012 16:25:49 +0000 (+0000) Subject: tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not predict loops... X-Git-Tag: misc/gccgo-go1_1_2~179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d96bad253abc02f9e93be5df49de74fb136c7a6;p=thirdparty%2Fgcc.git tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not predict loops with multiple exits realistically. * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not predict loops with multiple exits realistically. * cfgloopanal.c (single_likely_exit): New function. From-SVN: r192434 --- diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index 80af7d8dbc43..95f5d5313da8 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -254,7 +254,8 @@ extern basic_block *get_loop_body_in_custom_order (const struct loop *, int (*) (const void *, const void *)); extern VEC (edge, heap) *get_loop_exit_edges (const struct loop *); -edge single_exit (const struct loop *); +extern edge single_exit (const struct loop *); +extern edge single_likely_exit (struct loop *loop); extern unsigned num_loop_branches (const struct loop *); extern edge loop_preheader_edge (const struct loop *);