===================================================================
@@ -1326,6 +1326,9 @@ vect_get_peeling_costs_all_drs (vec<data
{
gimple *stmt = DR_STMT (dr);
stmt_vec_info stmt_info = vinfo_for_stmt (stmt);
+ if (!STMT_VINFO_RELEVANT_P (stmt_info))
+ continue;
+
/* For interleaving, only the alignment of the first access
matters. */
if (STMT_VINFO_GROUPED_ACCESS (stmt_info)
===================================================================
@@ -0,0 +1,28 @@
+/* { dg-do compile } */
+
+int a, b, c, *d, *f[1];
+
+void fn1 (int *j)
+{
+ int e, g, h = 1;
+ for (; e; e++)
+ {
+ if (g > 0)
+ {
+ d = j;
+ return;
+ }
+ if (!h)
+ while (g)
+ ;
+ while (h < 1)
+ if (a)
+ {
+ fn1 (&h);
+ h = 0;
+ }
+ f[e] = &c;
+ }
+ while (1)
+ ;
+}