===================================================================
@@ -1247,7 +1248,8 @@ vect_build_slp_tree (vec_info *vinfo,
return *leader;
}
poly_uint64 this_max_nunits = 1;
- slp_tree res = vect_build_slp_tree_2 (vinfo, stmts, group_size, max_nunits,
+ slp_tree res = vect_build_slp_tree_2 (vinfo, stmts, group_size,
+ &this_max_nunits,
matches, npermutes, tree_size, bst_map);
if (res)
{
===================================================================
@@ -0,0 +1,20 @@
+/* { dg-do compile } */
+/* { dg-additional-options "-ftree-slp-vectorize" } */
+
+typedef struct {
+ long n[5];
+} secp256k1_fe;
+
+void *a, *b;
+int c;
+static void
+fn1(secp256k1_fe *p1, int p2)
+{
+ p1->n[2] = p1->n[3] = p1->n[4] = p2;
+}
+void
+fn2()
+{
+ fn1(b, !c);
+ fn1(a, !c);
+}