This is an archive of the discontinued LLVM Phabricator instance.

[Flang][OpenMP] Avoid double privatisation of loop variables
ClosedPublic

Authored by kiranchandramohan on Jun 7 2022, 1:15 PM.

Details

Summary

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.

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Mats Petersson <mats.petersson@arm.com>

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 7 2022, 1:15 PM
kiranchandramohan requested review of this revision.Jun 7 2022, 1:15 PM
kiranchandramohan edited the summary of this revision. (Show Details)Jun 13 2022, 5:04 AM

Rebase and remove whitespace.

Leporacanthicus accepted this revision.Jun 13 2022, 9:23 AM
This revision is now accepted and ready to land.Jun 13 2022, 9:23 AM