aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/goacc/parameter-4.f90
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-09-04 09:33:58 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2025-09-04 12:36:30 +0200
commit56e7010eef88d941c59e3d677b7bc67a890c210d (patch)
tree7a8b6722032e9a8d745258df84dadd73a4695350 /gcc/testsuite/gfortran.dg/goacc/parameter-4.f90
parente8969a86c1052e2949028f38daf8e273e7ecb106 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
tree-optimization/121768 - bogus double reduction detectedHEADtrunkmaster
The following changes how we detect double reductions, in particular not setting vect_double_reduction_def on the outer PHIs when the inner loop doesn't satisfy double reduction constraints. It also simplifies the setup a bit by not having to detect wheter we process an inner loop of a double reduction. PR tree-optimization/121768 * tree-vect-loop.cc (vect_inner_phi_in_double_reduction_p): Remove. (vect_analyze_scalar_cycles_1): Analyze inner loops of double reductions immediately and only mark fully recognized double reductions. Skip already analyzed inner loops. (vect_is_simple_reduction): Change double_reduc from a flag to an output of the inner loop PHI and to whether we are processing an inner loop of a double reduction. * gcc.dg/vect/pr121768.c: New testcase.
Diffstat (limited to 'gcc/testsuite/gfortran.dg/goacc/parameter-4.f90')
0 files changed, 0 insertions, 0 deletions