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
This commit is contained in:
Jakub Jelinek 2016-02-11 11:08:14 +01:00 committed by Jakub Jelinek
parent e6208a60cd
commit 567a3691a7
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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;