diff options
author | Richard Biener <rguenther@suse.de> | 2023-03-06 10:43:13 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-03-06 11:26:19 +0100 |
commit | c1873079b05e399355eb79e4828ed9ba2d0c6968 (patch) | |
tree | 3101c0a728fce20121788d8e9097528bb9a8b0ec /libgcc | |
parent | b83acefb0409056b566133f66843ead6c04b8474 (diff) | |
download | gcc-c1873079b05e399355eb79e4828ed9ba2d0c6968.zip gcc-c1873079b05e399355eb79e4828ed9ba2d0c6968.tar.gz gcc-c1873079b05e399355eb79e4828ed9ba2d0c6968.tar.bz2 |
tree-optimization/109025 - fixup double reduction detection
The following closes a gap in double reduction detection where we
in the outer loop analysis fail to verify the inner LC PHI use is
the latch definition of the inner loop PHI. That latch definition
is used to detect that an inner loop is part of a double reduction
when later doing the inner loop analysis.
PR tree-optimization/109025
* tree-vect-loop.cc (vect_is_simple_reduction): Verify
the inner LC PHI use is the inner loop PHI latch definition
before classifying an outer PHI as double reduction.
* gcc.dg/vect/pr109025.c: New testcase.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions