]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/116658 - latent issue in vect_is_slp_load_node
authorRichard Biener <rguenther@suse.de>
Tue, 10 Sep 2024 07:39:16 +0000 (09:39 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 10 Sep 2024 09:47:30 +0000 (11:47 +0200)
commit747700cdb564ed1c5ef13bc73c2fe48639964c0f
tree5d763a6cce8a02f0c4a3998233eb4d0633b8007e
parenta7eaf7d5edb194bae0d7d9bc3d20bb5730be57d8
tree-optimization/116658 - latent issue in vect_is_slp_load_node

Permute nodes do not have a representative so we have to guard
vect_is_slp_load_node against those.

PR tree-optimization/116658
* tree-vect-slp.cc (vect_is_slp_load_node): Make sure
node isn't a permute.

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