diff options
author | Richard Biener <rguenther@suse.de> | 2023-10-12 09:09:46 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-10-12 10:18:56 +0200 |
commit | 05f98310b54da95e468d799f4a910174320cccbb (patch) | |
tree | 8991bc3bf65e3225de1113cc02a71e242bb26915 /libgcc | |
parent | 5fbd91b12cd3e7b178842bf5624bdcd316832012 (diff) | |
download | gcc-05f98310b54da95e468d799f4a910174320cccbb.zip gcc-05f98310b54da95e468d799f4a910174320cccbb.tar.gz gcc-05f98310b54da95e468d799f4a910174320cccbb.tar.bz2 |
tree-optimization/111764 - wrong reduction vectorization
The following removes a misguided attempt to allow x + x in a reduction
path, also allowing x * x which isn't valid. x + x actually never
arrives this way but instead is canonicalized to 2 * x. This makes
reduction path handling consistent with how we handle the single-stmt
reduction case.
PR tree-optimization/111764
* tree-vect-loop.cc (check_reduction_path): Remove the attempt
to allow x + x via special-casing of assigns.
* gcc.dg/vect/pr111764.c: New testcase.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions