[all-commits] [llvm/llvm-project] 4ea268: [Clang][OpenMP] Fix private variables registration...
Baodi via All-commits
all-commits at lists.llvm.org
Tue Dec 5 06:17:00 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4ea268d831a79a1e466a126e4188b3a3b8615777
https://github.com/llvm/llvm-project/commit/4ea268d831a79a1e466a126e4188b3a3b8615777
Author: Baodi <lwshanbd at gmail.com>
Date: 2023-12-05 (Tue, 05 Dec 2023)
Changed paths:
M clang/lib/CodeGen/CGStmtOpenMP.cpp
M clang/test/OpenMP/distribute_parallel_for_simd_private_codegen.cpp
M clang/test/OpenMP/distribute_simd_private_codegen.cpp
A clang/test/OpenMP/simd_private_taskloop_codegen.cpp
M clang/test/OpenMP/target_teams_distribute_parallel_for_simd_private_codegen.cpp
M clang/test/OpenMP/target_teams_distribute_simd_private_codegen.cpp
M clang/test/OpenMP/teams_distribute_parallel_for_simd_private_codegen.cpp
M clang/test/OpenMP/teams_distribute_simd_private_codegen.cpp
Log Message:
-----------
[Clang][OpenMP] Fix private variables registration in `simd` (#74105)
Fix #69214
In `emitOMPSimdRegion`, the `EmitOMPPrivateLoopCounters` should be after
`EmitOMPPrivateClause`.
If not, the private variables will be registered too early, which is not
allowed by `EmitOMPPrivateClause`.
More information about the All-commits
mailing list