[all-commits] [llvm/llvm-project] 8a2c7a: [OPENMP]Fix PR50733: unexpected final value of lis...
Andrew V. Tischenko via All-commits
all-commits at lists.llvm.org
Thu Dec 2 14:12:38 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8a2c7a2410994ff277e8761c3b33d1b225be704c
https://github.com/llvm/llvm-project/commit/8a2c7a2410994ff277e8761c3b33d1b225be704c
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2021-12-02 (Thu, 02 Dec 2021)
Changed paths:
M clang/lib/Sema/SemaOpenMP.cpp
M clang/test/OpenMP/for_linear_codegen.cpp
M clang/test/OpenMP/for_simd_codegen.cpp
M clang/test/OpenMP/parallel_for_linear_codegen.cpp
M clang/test/OpenMP/parallel_for_simd_codegen.cpp
M clang/test/OpenMP/parallel_master_taskloop_simd_lastprivate_codegen.cpp
M clang/test/OpenMP/simd_codegen.cpp
M clang/test/OpenMP/target_parallel_for_codegen.cpp
M clang/test/OpenMP/target_parallel_for_simd_codegen.cpp
Log Message:
-----------
[OPENMP]Fix PR50733: unexpected final value of list-item in linear clause in loop construct.
Currently the last value of linear is calculated as var = init + num_iters * step.
Replaced it with var = var_priv, i.e. original variable gets the value
of the last private copy.
Differential Revision: https://reviews.llvm.org/D105151
More information about the All-commits
mailing list