Improve comments in pass_tree_loop_init::execute
authorTom de Vries <tom@codesourcery.com>
Tue, 17 Nov 2015 21:42:36 +0000 (21:42 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 17 Nov 2015 21:42:36 +0000 (21:42 +0000)
2015-11-17  Tom de Vries  <tom@codesourcery.com>

* tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.

From-SVN: r230505

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

index 8267d67c956e6185b5b39dba66849ae2a9410607..2e20b4349420a78734a410d7bca760b152241dd2 100644 (file)
@@ -1,3 +1,7 @@
+2015-11-17  Tom de Vries  <tom@codesourcery.com>
+
+       * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
+
 2015-11-17  Tom de Vries  <tom@codesourcery.com>
 
        * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
index 8ecd140c22dfd145c61752350b6700e2db31e4b5..afdef1217885b484e0735bf17c77f138ca1e648b 100644 (file)
@@ -211,12 +211,15 @@ public:
 unsigned int
 pass_tree_loop_init::execute (function *fun ATTRIBUTE_UNUSED)
 {
+  /* When processing a loop in the loop pipeline, we should be able to assert
+     that:
+       (loops_state_satisfies_p (LOOPS_NORMAL | LOOPS_HAVE_RECORDED_EXITS
+                                             | LOOP_CLOSED_SSA)
+       && scev_initialized_p ())
+  */
   loop_optimizer_init (LOOPS_NORMAL
                       | LOOPS_HAVE_RECORDED_EXITS);
   rewrite_into_loop_closed_ssa (NULL, TODO_update_ssa);
-
-  /* We might discover new loops, e.g. when turning irreducible
-     regions into reducible.  */
   scev_initialize ();
 
   return 0;