Commit c030f467 authored by Kiran Chandramohan's avatar Kiran Chandramohan
Browse files

[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: default avatarJean Perier <jperier@nvidia.com>
Co-authored-by: default avatarMats Petersson <mats.petersson@arm.com>
parent e16d1332
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment