projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c227d96
)
Fix iteration over loads in SLP optimize
author
Richard Biener
<rguenther@suse.de>
Wed, 28 Oct 2020 13:16:05 +0000
(14:16 +0100)
committer
Richard Biener
<rguenther@suse.de>
Wed, 28 Oct 2020 14:04:06 +0000
(15:04 +0100)
I've made a typo when refactoring the iteration over all loads in
the SLP graph. Fixed.
2020-10-28 Richard Biener <rguenther@suse.de>
* tree-vect-slp.c (vect_optimize_slp): Fix iteration over
all loads.
gcc/tree-vect-slp.c
patch
|
blob
|
history
diff --git
a/gcc/tree-vect-slp.c
b/gcc/tree-vect-slp.c
index 50a2d37eb254c02e788ded0435f00ec0620302d1..5eafc037955f322fe1d4015256f963104a1ca68b 100644
(file)
--- 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;