tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental commit.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 28 May 2016 13:22:49 +0000 (15:22 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 28 May 2016 13:22:49 +0000 (13:22 +0000)
* tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
commit.

From-SVN: r236847

gcc/ChangeLog
gcc/tree-ssa-loop-niter.c

index 1f9ea20b83195218c6c5175cc9c2c4d479ad221f..86cf148bcde944b02a0298f0bca7a42fcca21497 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
+
+       * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
+       commit.
+
 2016-05-28  Alan Modra  <amodra@gmail.com>
 
        * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
index e38d2466bb470263fd9d9022f521973fe60f8eef..e70e0a7e99a520dd50c1ef44502d197c9c3b8e54 100644 (file)
@@ -2289,11 +2289,7 @@ number_of_iterations_exit (struct loop *loop, edge exit,
 
   /* If NITER has simplified into a constant, update MAX.  */
   if (TREE_CODE (niter->niter) == INTEGER_CST)
-    {
-      niter->max = wi::to_widest (niter->niter);
-      record_niter_bound (loop, niter->max, loop_only_exit_p (loop, exit),
-                         true);
-    }
+    niter->max = wi::to_widest (niter->niter);
 
   if (integer_onep (niter->assumptions))
     return true;