]> gcc.gnu.org Git - gcc.git/commit
vect: Fix single def-use cycle for ifn reductions [PR108608]
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 31 Jan 2023 15:03:43 +0000 (15:03 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 31 Jan 2023 15:03:43 +0000 (15:03 +0000)
commit2bb444787ed17a9e786f544cdf51ee2ac6779ab2
treee9b76790b11f31c7f0dd90671451c7f585d75688
parent1626ec53e8c1b9c245572417d380e3ed84990cff
vect: Fix single def-use cycle for ifn reductions [PR108608]

The patch that added support for fmin/fmax reductions didn't
handle single def-use cycles.  In some ways, this seems like
going out of our way to make things slower, but that's a
discussion for another day.

gcc/
PR tree-optimization/108608
* tree-vect-loop.cc (vect_transform_reduction): Handle single
def-use cycles that involve function calls rather than tree codes.

gcc/testsuite/
PR tree-optimization/108608
* gcc.dg/vect/pr108608.c: New test.
* gcc.target/aarch64/sve/pr108608-1.c: Likewise.
gcc/testsuite/gcc.dg/vect/pr108608.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/sve/pr108608-1.c [new file with mode: 0644]
gcc/tree-vect-loop.cc
This page took 0.077383 seconds and 6 git commands to generate.