tree-optimization/101026 - fix SLP re-association
authorRichard Biener <rguenther@suse.de>
Fri, 11 Jun 2021 11:33:17 +0000 (13:33 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 11 Jun 2021 11:35:31 +0000 (13:35 +0200)
commitfbd8a8041292f2ec2c22be43c8d3e74b37b2bc88
tree78830fba159400c70c0ed872d610554d0fc546ad
parent4bdcdd8fa8d7659e5a19a930cf2f0332127f8a46
tree-optimization/101026 - fix SLP re-association

Since we cannot yet encode the operation in the SLP node itself
but need a representative stmt require an existing one for now
to avoid the need to build a fake GIMPLE stmt.

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

PR tree-optimization/101026
* tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
have a representative for the associated chain nodes.

* gfortran.dg/pr101026.f: New testcase.
gcc/testsuite/gfortran.dg/pr101026.f [new file with mode: 0644]
gcc/tree-vect-slp.c