This is an archive of the discontinued LLVM Phabricator instance.

[flang][openacc] Keep original array size in reduction init region with slice
ClosedPublic

Authored by clementval on Jul 20 2023, 2:52 PM.

Details

Summary

Keep the original array size when materializing the private copy.

Depends on D155882

Diff Detail

Event Timeline

clementval created this revision.Jul 20 2023, 2:52 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 20 2023, 2:52 PM
clementval requested review of this revision.Jul 20 2023, 2:52 PM
razvanlupusoru accepted this revision.Jul 21 2023, 8:12 AM

Thank you! I agree with this now.

It made sense at first to create a new type for the slice, but this new type would become incompatible with all possible uses of that original array. Thus, just like the data mapping operations, it makes sense to keep the original type!

This revision is now accepted and ready to land.Jul 21 2023, 8:12 AM
This revision was landed with ongoing or failed builds.Jul 24 2023, 9:34 AM
This revision was automatically updated to reflect the committed changes.