]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/101207 - fix BB reduc permute elide with life stmts
authorRichard Biener <rguenther@suse.de>
Mon, 28 Jun 2021 07:42:58 +0000 (09:42 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 28 Jun 2021 07:42:58 +0000 (09:42 +0200)
commit2ad71efb5de9e929ffd2b8ce0a37c3c34021c0f1
tree8d9bd3176cffb59d65c31dd6daf968aa91b24706
parent0ad9d88a3d7170b3d864693c9eb512f89a5096ff
tree-optimization/101207 - fix BB reduc permute elide with life stmts

This fixes breakage of live lane extracts from permuted loads we elide
from BB reduction vectorization by handling the un-permuting the same
as in the regular eliding code - apply the reverse permute to
both the scalar stmts and the load permutation.

2021-06-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/101207
* tree-vect-slp.c (vect_optimize_slp): Do BB reduction
permute eliding for load permutations properly.

* gcc.dg/vect/bb-slp-pr101207.c: New testcase.
gcc/testsuite/gcc.dg/vect/bb-slp-pr101207.c [new file with mode: 0644]
gcc/tree-vect-slp.c
This page took 0.066663 seconds and 5 git commands to generate.