aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-unswitch.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-04-12 15:38:46 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-04-12 13:38:46 +0000
commit3e43b79ccef4a79397185637d55c092674a69f2b (patch)
tree86d1b96ecbf5e3ec2f494354552048320d5c8783 /gcc/tree-ssa-loop-unswitch.c
parent58d32aeba5a1c7749d8307f73f55e39176186bdb (diff)
downloadgcc-3e43b79ccef4a79397185637d55c092674a69f2b.zip
gcc-3e43b79ccef4a79397185637d55c092674a69f2b.tar.gz
gcc-3e43b79ccef4a79397185637d55c092674a69f2b.tar.bz2
Revert r234572 (aka PR testsuite/70577)
Revert 2016-03-30 Jan Hubicka <hubicka@ucw.cz> * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic estimates here. * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also max_loop_iterations_int. (tree_unswitch_outer_loop): Likewise. * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise. * tree-vect-loop.c (vect_analyze_loop_2): Likewise. From-SVN: r234902
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.c')
-rw-r--r--gcc/tree-ssa-loop-unswitch.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-unswitch.c b/gcc/tree-ssa-loop-unswitch.c
index 77acd66..dd6fd01 100644
--- a/gcc/tree-ssa-loop-unswitch.c
+++ b/gcc/tree-ssa-loop-unswitch.c
@@ -223,8 +223,6 @@ tree_unswitch_single_loop (struct loop *loop, int num)
/* If the loop is not expected to iterate, there is no need
for unswitching. */
iterations = estimated_loop_iterations_int (loop);
- if (iterations < 0)
- iterations = max_loop_iterations_int (loop);
if (iterations >= 0 && iterations <= 1)
{
if (dump_file && (dump_flags & TDF_DETAILS))
@@ -441,8 +439,6 @@ tree_unswitch_outer_loop (struct loop *loop)
/* If the loop is not expected to iterate, there is no need
for unswitching. */
iterations = estimated_loop_iterations_int (loop);
- if (iterations < 0)
- iterations = max_loop_iterations_int (loop);
if (iterations >= 0 && iterations <= 1)
{
if (dump_file && (dump_flags & TDF_DETAILS))