[all-commits] [llvm/llvm-project] c030f4: [Flang][OpenMP] Avoid double privatisation of loop...

kiranchandramohan via All-commits all-commits at lists.llvm.org
Mon Jun 13 09:35:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c030f467036403bee2d640e910154281377c6f39
      https://github.com/llvm/llvm-project/commit/c030f467036403bee2d640e910154281377c6f39
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    A flang/test/Lower/OpenMP/omp-parallel-private-clause-fixes.f90

  Log Message:
  -----------
  [Flang][OpenMP] Avoid double privatisation of loop variables

Loop variables of a worksharing loop and sequential loops in parallel
region are privatised by default. These variables are marked with
OmpPreDetermined. Skip explicit privatisation of these variables.

Note: This is part of upstreaming from the fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project.

Reviewed By: Leporacanthicus

Differential Revision: https://reviews.llvm.org/D127249

Co-authored-by: Jean Perier <jperier at nvidia.com>
Co-authored-by: Mats Petersson <mats.petersson at arm.com>




More information about the All-commits mailing list