diff options
author | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2022-06-13 16:26:36 +0000 |
---|---|---|
committer | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2022-06-13 16:27:34 +0000 |
commit | c030f467036403bee2d640e910154281377c6f39 (patch) | |
tree | 57fc16286bd029d2975ae1bebfaf4afe5634013b /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | e16d13322b2617843511aebb29a502166824b07a (diff) | |
download | llvm-c030f467036403bee2d640e910154281377c6f39.zip llvm-c030f467036403bee2d640e910154281377c6f39.tar.gz llvm-c030f467036403bee2d640e910154281377c6f39.tar.bz2 |
[Flang][OpenMP] Avoid double privatisation of loop variables
Loop variables of a worksharing loop and sequential loops in parallel
region are privatised by default. These variables are marked with
OmpPreDetermined. Skip explicit privatisation of these variables.
Note: This is part of upstreaming from the fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project.
Reviewed By: Leporacanthicus
Differential Revision: https://reviews.llvm.org/D127249
Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Mats Petersson <mats.petersson@arm.com>
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions