diff options
author | Richard Biener <rguenther@suse.de> | 2025-09-03 10:04:58 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-09-03 13:02:35 +0200 |
commit | 41e2fe9be1ff5ef2eafd49b30882898d26b9bf36 (patch) | |
tree | 16683c6ea13ad1dfa7982c5f089b52c2d735c32c /gcc/testsuite/gcc.dg/cpp | |
parent | b905810be2ebd271d759d66cc2588e7b8180cc39 (diff) | |
download | gcc-41e2fe9be1ff5ef2eafd49b30882898d26b9bf36.zip gcc-41e2fe9be1ff5ef2eafd49b30882898d26b9bf36.tar.gz gcc-41e2fe9be1ff5ef2eafd49b30882898d26b9bf36.tar.bz2 |
tree-optimization/121758 - fix pattern stmt REDUC_IDX updating
The following fixes a corner case of pattern stmt STMT_VINFO_REDUC_IDX
updating which happens auto-magically. When a 2nd pattern sequence
uses defs from inside a prior pattern sequence then the first guess
for the lookfor can be off. This happens when for example widening
patterns use vect_get_internal_def, which looks into earlier patterns.
PR tree-optimization/121758
* tree-vect-patterns.cc (vect_mark_pattern_stmts): Try
harder to find a reduction continuation.
* gcc.dg/vect/pr121758.c: New testcase.
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
0 files changed, 0 insertions, 0 deletions