Commit 567a3691 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/65313 (Compilation error in lto profiledbootstrap on powerpc64le-unknown-linux-gnu)

	PR target/65313
	* tree-vect-slp.c (vect_schedule_slp_instance): Avoid
	-Wmaybe-uninitialized warning.

From-SVN: r233337
parent e6208a60
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
......
......@@ -3568,20 +3568,18 @@ vect_schedule_slp_instance (slp_tree node, slp_instance instance,
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment