[all-commits] [llvm/llvm-project] b1341e: [flang][openacc] Fix unstructured code in OpenACC ...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Wed Sep 13 20:50:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1341e2863e7aae035827dd3f8a2373fa2617c8a
      https://github.com/llvm/llvm-project/commit/b1341e2863e7aae035827dd3f8a2373fa2617c8a
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M flang/lib/Lower/DirectivesCommon.h
    M flang/lib/Lower/OpenACC.cpp
    M flang/lib/Lower/OpenMP.cpp
    A flang/test/Lower/OpenACC/acc-unstructured.f90
    M flang/test/Lower/OpenACC/stop-stmt-in-region.f90

  Log Message:
  -----------
  [flang][openacc] Fix unstructured code in OpenACC region ops (#66284)

For unstructured construct, the blocks are created in advance inside the
function body. This causes issues when the unstructured construct is
inside an OpenACC region operations. This patch adds the same fix than
OpenMP lowering and re-create the blocks inside the op region.

Initial OpenMP fix: 29f167abcf7d871d17dd3f38f361916de1a12470




More information about the All-commits mailing list