* tree-vect-slp.c (vect_schedule_slp_instance): Avoid
-Wmaybe-uninitialized warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233337
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-02-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/65313
+ * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
+ -Wmaybe-uninitialized warning.
+
2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
PR target/69713
if (SLP_TREE_TWO_OPERATORS (node))
{
enum tree_code code0 = gimple_assign_rhs_code (stmt);
- enum tree_code ocode;
+ enum tree_code ocode = ERROR_MARK;
gimple *ostmt;
unsigned char *mask = XALLOCAVEC (unsigned char, group_size);
- bool allsame = true;
FOR_EACH_VEC_ELT (SLP_TREE_SCALAR_STMTS (node), i, ostmt)
if (gimple_assign_rhs_code (ostmt) != code0)
{
mask[i] = 1;
- allsame = false;
ocode = gimple_assign_rhs_code (ostmt);
}
else
mask[i] = 0;
- if (!allsame)
+ if (ocode != ERROR_MARK)
{
vec<gimple *> v0;
vec<gimple *> v1;