]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/97241 - fix ICE in reduction vectorization
authorRichard Biener <rguenther@suse.de>
Tue, 29 Sep 2020 13:02:47 +0000 (15:02 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 29 Sep 2020 13:18:39 +0000 (15:18 +0200)
commit39a27bb01aa223ce89946f0a4de6b60c4c0b03d2
tree2284bd6563dd67e6d208e5e014fb0b8c0f5c9f13
parentb1570930df659ff3ea6691f9ba8b84c8a189d85d
tree-optimization/97241 - fix ICE in reduction vectorization

The following moves an ad-hoc attempt at discovering the SLP node
for a stmt to the place where we can find it in lock-step when
we find the stmt itself.

2020-09-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97241
* tree-vect-loop.c (vectorizable_reduction): Move finding
the SLP node for the reduction stmt to a better place.

* gcc.dg/vect/pr97241.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr97241.c [new file with mode: 0644]
gcc/tree-vect-loop.c
This page took 0.066443 seconds and 6 git commands to generate.