Message ID | nycvar.YFH.7.76.2010281445190.31087@elmra.sevgm.obk |
---|---|
State | New |
Headers | show |
Series | Fix iteration over loads in SLP optimize | expand |
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 50a2d37eb25..5eafc037955 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -3043,7 +3043,7 @@ vect_optimize_slp (vec_info *vinfo) /* Now elide load permutations that are not necessary. */ for (i = 0; i < leafs.length (); ++i) { - node = vertices[i]; + node = vertices[leafs[i]]; if (!SLP_TREE_LOAD_PERMUTATION (node).exists ()) continue;