Page MenuHomePhabricator

[flang][OpenMP] Lowering support for lastprivate on unstructured sections construct
Needs ReviewPublic

Authored by NimishMishra on Feb 1 2023, 7:58 AM.

Details

Summary

This patch adds lowering support for lastprivate privatization on unstructured construct. Generic lastprivate lowering on sections involves creating a scf.if operation on the lexically last section block and updating the lastprivate variable inside it. However, this control flow is not needed if the section construct is lowered as an unstructured construct. Hence, this patch modifies the lowering control flow to not emit an unnecessary scf.if if the section block is lowered as an unstructured construct.

Depends on D133686

Diff Detail

Event Timeline

NimishMishra created this revision.Feb 1 2023, 7:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2023, 7:58 AM
NimishMishra requested review of this revision.Feb 1 2023, 7:58 AM

Rebase with main

Fix CI fails

Could you add a description in the summary or add a comment in the changed code on what this change does and how it fixes the issue?

NimishMishra edited the summary of this revision. (Show Details)Thu, Mar 9, 6:24 AM