]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/101121 - avoid infinite SLP build
authorRichard Biener <rguenther@suse.de>
Mon, 21 Jun 2021 07:30:41 +0000 (09:30 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 21 Jun 2021 09:06:27 +0000 (11:06 +0200)
commit90f78d5d86598f8cadacfb20d8d98c122a466599
treee3f865904d94643995bafce42ed98ee04cceaef6
parent08c85f609a73fb36fdcbd9f327a5a645c20ac816
tree-optimization/101121 - avoid infinite SLP build

The following plugs another hole where we cache a failed SLP build
attempt with an all-success 'matches'.  It also adds checking that
we don't do that.

2021-06-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/101121
* tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
when we just lack a stmt with the desired op when doing permutation.
(vect_build_slp_tree): When caching a failed SLP build attempt
assert that at least one lane is marked as not matching.

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