Refactor vect_get_and_check_slp_defs some more
authorRichard Biener <rguenther@suse.de>
Wed, 14 Oct 2020 13:37:51 +0000 (15:37 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 16 Oct 2020 08:24:17 +0000 (10:24 +0200)
commit540d5f4f0215e1cdd2d4a2c89c65e46033298be0
tree4781156774435353b9af4b42b79ff3dfd16d0ed2
parenta86623902767122c71c7229150a8b8a79cbb3673
Refactor vect_get_and_check_slp_defs some more

This refactors vect_get_and_check_slp_defs so that the ops and def_stmts
arrays are filled for all stmts and operands even when we signal failure.
This allows later changes for BB vectorization SLP discovery heuristics.

2020-10-16  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_get_and_check_slp_defs): First analyze
all operands and fill in the def_stmts and ops entries.
(vect_def_types_match): New helper.
gcc/tree-vect-slp.c