re PR regression/86304 ([MIPS] FAIL: gcc.dg/vect/pr79887.c -mmsa (internal compiler...
authorRichard Biener <rguenther@suse.de>
Mon, 25 Jun 2018 13:04:38 +0000 (13:04 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 25 Jun 2018 13:04:38 +0000 (13:04 +0000)
2018-06-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/86304
* tree-vectorizer.c (vectorize_loops): Walk over new possibly
epilogue-if-converted loops as well.

From-SVN: r262017

gcc/ChangeLog
gcc/tree-vectorizer.c

index 1c44a196cfe60358c1180c1f1d577b4c7d3ee761..84b8b64acba262eea44f1082f35142d6aff624bd 100644 (file)
@@ -1,3 +1,9 @@
+2018-06-25  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/86304
+       * tree-vectorizer.c (vectorize_loops): Walk over new possibly
+       epilogue-if-converted loops as well.
+
 2018-06-25  Jan Hubicka  <hubicka@ucw.cz>
 
        * lto-section-out.c (lto_begin_section): Do not print section
index 41f5365a8c2b7e5dad3840ca2928b9f3849d0ef3..504a00020d87e1931ce4c74774e5d41cd4983bb9 100644 (file)
@@ -929,7 +929,7 @@ vectorize_loops (void)
   /*  ----------- Finalize. -----------  */
 
   if (any_ifcvt_loops)
-    for (i = 1; i < vect_loops_num; i++)
+    for (i = 1; i < number_of_loops (cfun); i++)
       {
        loop = get_loop (cfun, i);
        if (loop && loop->dont_vectorize)