+2015-12-09 Richard Biener <rguenther@suse.de>
+
+ * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
+ if it was not yet set.
+ * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
+ overwrite an existing entry.
+
2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
* c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
unshare_expr
(gimple_assign_rhs1 (stmt))));
new_temp = vect_init_vector (stmt, tem, vectype, NULL);
+ new_stmt = SSA_NAME_DEF_STMT (new_temp);
+ set_vinfo_for_stmt (new_stmt,
+ new_stmt_vec_info (new_stmt, vinfo));
}
else
{
gsi_next (&gsi2);
new_temp = vect_init_vector (stmt, scalar_dest,
vectype, &gsi2);
+ new_stmt = SSA_NAME_DEF_STMT (new_temp);
}
- new_stmt = SSA_NAME_DEF_STMT (new_temp);
- set_vinfo_for_stmt (new_stmt,
- new_stmt_vec_info (new_stmt, vinfo));
}
if (negative)
stmt_vec_info_vec.safe_push (info);
}
else
- stmt_vec_info_vec[uid - 1] = info;
+ {
+ gcc_checking_assert (info == NULL);
+ stmt_vec_info_vec[uid - 1] = info;
+ }
}
/* Return the earlier statement between STMT1 and STMT2. */