]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/102046 - fix SLP build from scalars with patterns
authorRichard Biener <rguenther@suse.de>
Wed, 25 Aug 2021 08:06:01 +0000 (10:06 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 25 Aug 2021 09:32:05 +0000 (11:32 +0200)
commit29c77454e5ab33ce06a741eacdfbd5348fbccc95
tree1254746e91d2fad20bc308df7cf7b012ffdcfcc9
parent87afc7b81cd44d04997add383856b2504af3afe6
tree-optimization/102046 - fix SLP build from scalars with patterns

When we swap operands for SLP builds we lose track where exactly
pattern defs are - but we fail to update the any_pattern member
of the operands info.  Do so conservatively.

2021-08-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/102046
* tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
update ->any_pattern when swapping operands.

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