[all-commits] [llvm/llvm-project] a9fca9: [OPENMP]PR47606: Do not update the lastprivate ite...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Sep 24 10:22:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a9fca98ee4f653278d84713caecd152fef8494f5
      https://github.com/llvm/llvm-project/commit/a9fca98ee4f653278d84713caecd152fef8494f5
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-09-24 (Thu, 24 Sep 2020)

  Changed paths:
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/for_lastprivate_codegen.cpp

  Log Message:
  -----------
  [OPENMP]PR47606: Do not update the lastprivate item if it was captured by reference as firstprivate data member.

No need to make final copy from the firsptrivate/lastprivate copy to the original item if the item is a data memeber.
Firstprivate copy creates a copy by reference and the original item gets
updated correctly when updating the lastprivate shared variable.

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




More information about the All-commits mailing list