diff options
author | Richard Biener <rguenther@suse.de> | 2024-07-01 10:06:55 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-07-01 11:00:04 +0200 |
commit | 286cda3461d6f5ce7d911d3f26bd4975ea7ea11d (patch) | |
tree | d881230791e8e9396184322f9b605a94478f3fea /libffi/src | |
parent | 382e2123c402edb6123f0c4669fa298d4140edd8 (diff) | |
download | gcc-286cda3461d6f5ce7d911d3f26bd4975ea7ea11d.zip gcc-286cda3461d6f5ce7d911d3f26bd4975ea7ea11d.tar.gz gcc-286cda3461d6f5ce7d911d3f26bd4975ea7ea11d.tar.bz2 |
tree-optimization/115723 - ICE with .COND_ADD reduction
The following fixes an ICE with a .COND_ADD discovered as reduction
even though its else value isn't the reduction chain link but a
constant. This would be wrong-code with --disable-checking I think.
PR tree-optimization/115723
* tree-vect-loop.cc (check_reduction_path): For a .COND_ADD
verify the else value also refers to the reduction chain op.
* gcc.dg/vect/pr115723.c: New testcase.
Diffstat (limited to 'libffi/src')
0 files changed, 0 insertions, 0 deletions