]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/gimple-loop-jam.c
Correct a function pre/postcondition [PR102403].
[thirdparty/gcc.git] / gcc / gimple-loop-jam.c
index 544ad779dd6dde9b0c665ca5c67a02920ebec029..d212e3914894b072d240768f9ec21cf28e4fc3b2 100644 (file)
@@ -487,13 +487,12 @@ adjust_unroll_factor (class loop *inner, struct data_dependence_relation *ddr,
 static unsigned int
 tree_loop_unroll_and_jam (void)
 {
-  class loop *loop;
   unsigned int todo = 0;
 
   gcc_assert (scev_initialized_p ());
 
   /* Go through all innermost loops.  */
-  FOR_EACH_LOOP (loop, LI_ONLY_INNERMOST)
+  for (auto loop : loops_list (cfun, LI_ONLY_INNERMOST))
     {
       class loop *outer = loop_outer (loop);