[0/4] openmp: loop transformation fixes

Message ID 20230728130433.2377366-1-frederik@codesourcery.com
Headers
Series openmp: loop transformation fixes |

Message

Frederik Harwath July 28, 2023, 1:04 p.m. UTC
  Hi,
the following patches contain some fixes from the devel/omp/gcc-13 branch
to the patches that implement the OpenMP 5.1. loop transformation directives
which I have posted in March 2023.

Frederik



Frederik Harwath (4):
  openmp: Fix loop transformation tests
  openmp: Fix initialization for 'unroll full'
  openmp: Fix diagnostic message for "omp unroll"
  openmp: Fix number of iterations computation for "omp unroll full"

 gcc/omp-transform-loops.cc                    | 99 ++++++++++++++-----
 .../gomp/loop-transforms/unroll-8.c           | 76 ++++++++++++++
 .../gomp/loop-transforms/unroll-8.f90         |  2 +-
 .../gomp/loop-transforms/unroll-9.f90         |  2 +-
 .../matrix-no-directive-unroll-full-1.C       | 13 +++
 .../loop-transforms/matrix-no-directive-1.c   |  2 +-
 .../matrix-no-directive-unroll-full-1.c       |  2 +-
 .../matrix-omp-distribute-parallel-for-1.c    |  2 +
 .../loop-transforms/matrix-omp-for-1.c        |  2 +-
 .../matrix-omp-parallel-for-1.c               |  2 +-
 .../matrix-omp-parallel-masked-taskloop-1.c   |  2 +
 ...trix-omp-parallel-masked-taskloop-simd-1.c |  2 +
 .../matrix-omp-target-parallel-for-1.c        |  2 +-
 ...p-target-teams-distribute-parallel-for-1.c |  2 +
 .../loop-transforms/matrix-omp-taskloop-1.c   |  2 +
 ...trix-omp-teams-distribute-parallel-for-1.c |  2 +
 .../loop-transforms/matrix-simd-1.c           |  2 +
 .../loop-transforms/unroll-1.c                |  8 +-
 .../loop-transforms/unroll-non-rect-1.c       |  2 +
 .../loop-transforms/tile-2.f90                |  2 +-
 .../loop-transforms/unroll-1.f90              |  2 +
 .../loop-transforms/unroll-6.f90              |  4 +-
 .../loop-transforms/unroll-simd-1.f90         |  3 +-
 23 files changed, 197 insertions(+), 40 deletions(-)
 create mode 100644 gcc/testsuite/c-c++-common/gomp/loop-transforms/unroll-8.c
 create mode 100644 libgomp/testsuite/libgomp.c++/loop-transforms/matrix-no-directive-unroll-full-1.C

--
2.36.1

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955