]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/95761 - fix vector insertion place compute
authorRichard Biener <rguenther@suse.de>
Fri, 19 Jun 2020 08:03:46 +0000 (10:03 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 19 Jun 2020 11:36:46 +0000 (13:36 +0200)
commitf8f5715606a4a455327874847ccc91f4617bb4de
tree03b587bdd61a18ca7028c70830944bd3e946c630
parentbafd12cb22e83b7da8946873513a897e48e2900f
tree-optimization/95761 - fix vector insertion place compute

I missed that indeed SLP permutation code generation can end up
refering to a non-last vectorized stmt in the last SLP_TREE_VEC_STMTS
element as optimization.  So walk them all.

2020-06-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95761
* tree-vect-slp.c (vect_schedule_slp_instance): Walk all
vectorized stmts for finding the last one.

* gcc.dg/torture/pr95761.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr95761.c [new file with mode: 0644]
gcc/tree-vect-slp.c
This page took 0.068736 seconds and 5 git commands to generate.