fixup BIT_FIELD_REF detection in SLP discovery
authorRichard Biener <rguenther@suse.de>
Thu, 9 Jul 2020 14:06:04 +0000 (16:06 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 9 Jul 2020 17:54:34 +0000 (19:54 +0200)
commit9ddea9306251b7d4e4fd1d67a5941ef7448b2e66
treeb0bb2d34572f548263e4cbed1fb96a0c74b826a2
parent614662064ad4993a2aaecf190e7399ac5279e78e
fixup BIT_FIELD_REF detection in SLP discovery

This fixes a thinko where we end up combining a BIT_FIELD_REF
and a memory access, fixed by checking all stmts are a load or
none.

2020-07-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/96133
* tree-vect-slp.c (vect_build_slp_tree_1): Compare load_p
status between stmts.
gcc/tree-vect-slp.c