[all-commits] [llvm/llvm-project] b3998a: [OPENMP]Fix PR45047: Do not copy firstprivates in ...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Fri Mar 13 15:16:14 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b3998a0edb9ae154a69964a94b5c53decf27f210
      https://github.com/llvm/llvm-project/commit/b3998a0edb9ae154a69964a94b5c53decf27f210
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-03-13 (Fri, 13 Mar 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/AST/ast-dump-openmp-taskloop-simd.c
    M clang/test/AST/ast-dump-openmp-taskloop.c
    M clang/test/OpenMP/master_taskloop_firstprivate_codegen.cpp
    M clang/test/OpenMP/master_taskloop_in_reduction_codegen.cpp
    M clang/test/OpenMP/master_taskloop_reduction_codegen.cpp
    M clang/test/OpenMP/master_taskloop_simd_codegen.cpp
    M clang/test/OpenMP/master_taskloop_simd_firstprivate_codegen.cpp
    M clang/test/OpenMP/master_taskloop_simd_in_reduction_codegen.cpp
    M clang/test/OpenMP/master_taskloop_simd_reduction_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_firstprivate_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_reduction_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_simd_firstprivate_codegen.cpp
    M clang/test/OpenMP/parallel_master_taskloop_simd_reduction_codegen.cpp
    M clang/test/OpenMP/task_firstprivate_codegen.cpp
    M clang/test/OpenMP/task_in_reduction_codegen.cpp
    M clang/test/OpenMP/taskloop_firstprivate_codegen.cpp
    M clang/test/OpenMP/taskloop_in_reduction_codegen.cpp
    M clang/test/OpenMP/taskloop_reduction_codegen.cpp
    M clang/test/OpenMP/taskloop_simd_codegen.cpp
    M clang/test/OpenMP/taskloop_simd_firstprivate_codegen.cpp
    M clang/test/OpenMP/taskloop_simd_in_reduction_codegen.cpp
    M clang/test/OpenMP/taskloop_simd_reduction_codegen.cpp

  Log Message:
  -----------
  [OPENMP]Fix PR45047: Do not copy firstprivates in tasks twice.

Avoid copying of the orignal variable if it is going to be marked as
firstprivate in task regions. For taskloops, still need to copy the
non-trvially copyable variables to correctly construct them upon task
creation.




More information about the All-commits mailing list