tree-optimization/97650 - fix ICE in vect_get_and_check_slp_defs
authorRichard Biener <rguenther@suse.de>
Mon, 2 Nov 2020 07:59:02 +0000 (08:59 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 2 Nov 2020 10:03:30 +0000 (11:03 +0100)
commita159081ad4259c42456bd3dc2b637747c373c5a5
tree3f2113fad492f1c6b4f622a5176ee809cbdf85eb
parent4ad70477801548db4d37e8d540a3fd6ebbbcfd48
tree-optimization/97650 - fix ICE in vect_get_and_check_slp_defs

I was mistaken to treat vect_external_def as only applying to
SSA_NAME defs, so check for that.

2020-11-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97650
* tree-vect-slp.c (vect_get_and_check_slp_defs): Check
for SSA_NAME before checking SSA_NAME_IS_DEFAULT_DEF.

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