tree-optimization/113018 - ICE with BB reduction vectorization
commit4e9b2c94e45f5991a472fb639fb2baa6aa42b76b
authorRichard Biener <rguenther@suse.de>
Thu, 14 Dec 2023 15:00:50 +0000 (14 16:00 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 14 Dec 2023 15:57:06 +0000 (14 16:57 +0100)
tree0de27f83886d9ee5ab3507a1b5ed338033b250f8
parent83088b331cde0843d65d316e554873ef6d7b6bca
tree-optimization/113018 - ICE with BB reduction vectorization

When BB reduction vectorization picks up a chain with an ASM def
in it and that's inside the vectorized region we fail to get its
LHS.  Instead of trying to get the correct def the following
avoids vectorizing such def and instead keeps it as def to add
in the epilog.

PR tree-optimization/113018
* tree-vect-slp.cc (vect_slp_check_for_roots): Only start
SLP discovery from stmts with a LHS.
gcc/tree-vect-slp.cc