diff options
author | Richard Biener <rguenther@suse.de> | 2024-09-09 11:51:24 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-09-09 12:59:38 +0200 |
commit | 898e3e95a6acf542baf03be95ce5bf7b3ad04276 (patch) | |
tree | 1d78ccbd81f41a6dbc3211ca5578ec0dc5f328ab /gcc/fortran/error.cc | |
parent | 0171793aca4c0d4e9c8020c539bb4d3abfb91da7 (diff) | |
download | gcc-898e3e95a6acf542baf03be95ce5bf7b3ad04276.zip gcc-898e3e95a6acf542baf03be95ce5bf7b3ad04276.tar.gz gcc-898e3e95a6acf542baf03be95ce5bf7b3ad04276.tar.bz2 |
tree-optimization/116647 - wrong classified double reduction
The following avoids classifying a double reduction that's not
actually a reduction in the outer loop (because its value isn't
used outside of the outer loop). This avoids us ICEing on the
unexpected stmt/SLP node arrangement.
PR tree-optimization/116647
* tree-vect-loop.cc (vect_is_simple_reduction): Add missing
check to double reduction detection.
* gcc.dg/torture/pr116647.c: New testcase.
* gcc.dg/vect/no-scevccp-pr86725-2.c: Adjust expected pattern.
* gcc.dg/vect/no-scevccp-pr86725-4.c: Likewise.
Diffstat (limited to 'gcc/fortran/error.cc')
0 files changed, 0 insertions, 0 deletions