HomePhabricator

[OPENMP]PR47606: Do not update the lastprivate item if it was captured by…

Authored by ABataev on Wed, Sep 23, 12:27 PM.

Description

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

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.

Differential Revision: https://reviews.llvm.org/D88179