]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/103237 - avoid vectorizing unhandled double reductions
authorRichard Biener <rguenther@suse.de>
Mon, 15 Nov 2021 10:37:56 +0000 (11:37 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 17 Feb 2022 10:54:26 +0000 (11:54 +0100)
commit68c80396906ab10051a69a2181e114c61dd4ee8a
tree321382181a4ee16349aa42eb17ab0e9bb52ad57a
parent437b606ba19d08250db70e853fe9018a495b38e7
tree-optimization/103237 - avoid vectorizing unhandled double reductions

Double reductions which have multiple LC PHIs in the inner loop
are not handled correctly during transformation since those PHIs
are not properly classified as reduction.  The following disables
vectorizing them.

2021-11-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/103237
* tree-vect-loop.c (vect_is_simple_reduction): Fail for
double reductions with multiple inner loop LC PHI nodes.

* gcc.dg/torture/pr103237.c: New testcase.

(cherry picked from commit 220bd61874cf114667b44f9ded76ed0639eb278b)
gcc/testsuite/gcc.dg/torture/pr103237.c [new file with mode: 0644]
gcc/tree-vect-loop.c
This page took 0.065912 seconds and 6 git commands to generate.