tree-optimization/102696 - fix SLP discovery for failed BIT_FIELD_REF
authorRichard Biener <rguenther@suse.de>
Tue, 12 Oct 2021 11:49:39 +0000 (13:49 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 12 Oct 2021 12:49:44 +0000 (14:49 +0200)
commitd1dcaa31453fa080a27938b064e53f02272d4aa1
tree7226683e686713787e8ef4394e6c565e5c89063b
parent9f12a45ef147e563f099c24c293830727e8204cc
tree-optimization/102696 - fix SLP discovery for failed BIT_FIELD_REF

This fixes a forgotten adjustment of matches[] when we fail SLP
discovery.

2021-10-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/102696
* tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
the tree fatally failed when we reject a BIT_FIELD_REF.

* g++.dg/vect/pr102696.cc: New testcase.
gcc/testsuite/g++.dg/vect/pr102696.cc [new file with mode: 0644]
gcc/tree-vect-slp.c