2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
PR tree-optimization/92347
* tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
safelen with 0.
* gcc.dg/vect/pr92347.c: New test.
From-SVN: r278079
+2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
+
+ * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
+ safelen with 0.
+
2019-11-12 Alan Modra <amodra@gmail.com>
* config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
+2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
+
+ * gcc.dg/vect/pr92347.c: New test.
+
2019-11-11 Jakub Jelinek <jakub@redhat.com>
PR c++/92447
--- /dev/null
+/* Copied from PR 92347. */
+/* { dg-do compile } */
+/* { dg-options "-O1 -fopenmp-simd" } */
+/* { dg-additional-options "-mavx" { target { i?86-*-* x86_64-*-* } } } */
+
+int by;
+
+#pragma omp declare simd
+int
+zp (int);
+
+void
+qh (int oh)
+{
+#pragma omp simd
+ for (by = 0; by < oh; ++by)
+ by = zp (by);
+}
epilogue->simduid = loop->simduid;
epilogue->force_vectorize = loop->force_vectorize;
- epilogue->safelen = loop->safelen;
epilogue->dont_vectorize = false;
}