[all-commits] [llvm/llvm-project] b50150: [Flang][OpenMP] Fix for unstructured regions in Op...

kiranchandramohan via All-commits all-commits at lists.llvm.org
Tue May 31 02:43:14 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b501503ca0bc5562e5ef4eb736ab718fd29c7bc3
      https://github.com/llvm/llvm-project/commit/b501503ca0bc5562e5ef4eb736ab718fd29c7bc3
  Author: kiranchandramohan <kiranchandramohan at gmail.com>
  Date:   2022-05-31 (Tue, 31 May 2022)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    M flang/test/Lower/OpenMP/omp-unstructured.f90

  Log Message:
  -----------
  [Flang][OpenMP] Fix for unstructured regions in OpenMP constructs - 2

The following changes are made for OpenMP operations with unstructured region,
1. For combined constructs the outer operation is considered a structured
region and the inner one as the unstructured.
2. Added a condition to ensure that we create new blocks only once for nested
unstructured OpenMP constructs.

Tests are added for checking the structure of the CFG.

Note: This is part of upstreaming from the fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project. Code originally reviewed
at https://github.com/flang-compiler/f18-llvm-project/pull/1394.

Reviewed By: vdonaldson, shraiysh, peixin

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




More information about the All-commits mailing list