[all-commits] [llvm/llvm-project] 240b85: [flang][OpenMP] Fix the use-associated bug in thre...
PeixinQiao via All-commits
all-commits at lists.llvm.org
Mon Oct 17 04:47:37 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 240b85b1a8540f1ac000dda9042ac2fbccd9bc69
https://github.com/llvm/llvm-project/commit/240b85b1a8540f1ac000dda9042ac2fbccd9bc69
Author: Peixin Qiao <qiaopeixin at huawei.com>
Date: 2022-10-17 (Mon, 17 Oct 2022)
Changed paths:
M flang/lib/Lower/OpenMP.cpp
A flang/test/Lower/OpenMP/threadprivate-use-association-2.f90
Log Message:
-----------
[flang][OpenMP] Fix the use-associated bug in threadprivate directive lowering
The symbol may be used by use-association for multiple times such
as one in module specification part and one in module procedure.
Then in module procedure, the variable instantiation will be called
for multiple times. But we only need to threadprivatize it once and
use the threadprivatized value for the second time.
Fix #58379.
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D136035
More information about the All-commits
mailing list