@@ -3902,7 +3902,7 @@ vect_permute_store_chain (VEC(tree,heap) *dr_chain,
gimple perm_stmt;
tree vectype = STMT_VINFO_VECTYPE (vinfo_for_stmt (stmt));
tree perm_mask_low, perm_mask_high;
- int i;
+ unsigned int i, n;
unsigned int j, nelt = GET_MODE_NUNITS (TYPE_MODE (vectype));
unsigned char *sel = XALLOCAVEC (unsigned char, nelt);
@@ -3910,7 +3910,7 @@ vect_permute_store_chain (VEC(tree,heap) *dr_chain,
*result_chain = VEC_copy (tree, heap, dr_chain);
- for (i = 0; i < nelt / 2; i++)
+ for (i = 0, n = nelt / 2; i < n; i++)
{
sel[i * 2] = i;
sel[i * 2 + 1] = i + nelt;
@@ -3920,7 +3920,7 @@ vect_permute_store_chain (VEC(tree,heap) *dr_chain,
sel[i] += nelt / 2;
perm_mask_low = vect_gen_perm_mask (vectype, sel);
- for (i = 0; i < exact_log2 (length); i++)
+ for (i = 0, n = exact_log2 (length); i < n; i++)
{
for (j = 0; j < length/2; j++)
{