[all-commits] [llvm/llvm-project] b50f73: [flang][OpenMP] Lowering support for lastprivate o...

NimishMishra via All-commits all-commits at lists.llvm.org
Wed May 3 20:59:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b50f733c20126209affed392bdb0252d8faefaf6
      https://github.com/llvm/llvm-project/commit/b50f733c20126209affed392bdb0252d8faefaf6
  Author: Nimish Mishra <neelam.nimish at gmail.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    M flang/test/Lower/OpenMP/sections.f90

  Log Message:
  -----------
  [flang][OpenMP] Lowering support for lastprivate on unstructured sections
construct

This patch adds lowering support for lastprivate privatization on
unstructured construct. Generic lastprivate lowering on sections
involves creating a if operation on the lexically last section block
and updating the lastprivate variable inside it. However, this control
flow is not needed if the section construct is lowered as an
unstructured construct. Hence, this patch modifies the lowering control
flow to not emit an unnecessary scf.if if the section block is lowered
as an unstructured construct.

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list