This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP]PR47606: Do not update the lastprivate item if it was captured by reference as firstprivate data member.
ClosedPublic

Authored by ABataev on Sep 23 2020, 12:53 PM.

Details

Summary

No need to make final copy from the firsptrivate/lastprivate copy to the original item if the item is a data memeber.
Firstprivate copy creates a copy by reference and the original item gets
updated correctly when updating the lastprivate shared variable.

Diff Detail

Event Timeline

ABataev created this revision.Sep 23 2020, 12:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2020, 12:53 PM
ABataev requested review of this revision.Sep 23 2020, 12:53 PM
mikerice accepted this revision.Sep 24 2020, 8:39 AM

LGTM. Thanks Alexey.

This revision is now accepted and ready to land.Sep 24 2020, 8:39 AM