This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP]Fix PR49777: Clang should not try to specialize orphaned directives in device codegen.
AbandonedPublic

Authored by ABataev on Apr 1 2021, 12:47 PM.

Details

Reviewers
jdoerfert
Summary

Compiler supports generic code emission, but in some cases may
erroneously consider the function context as SPMD context or Non-SPMD
parallel context. Need to clear/restore context upon entrance/exit
to/from function to avoid incorrect codegen.

Diff Detail

Event Timeline

ABataev created this revision.Apr 1 2021, 12:47 PM
ABataev requested review of this revision.Apr 1 2021, 12:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2021, 12:47 PM
Herald added a subscriber: sstefan1. · View Herald Transcript

The bug has been fixed by D95976 already, I'll update the bug report now.
Also, the tracking of Generic/SPMD mode in clang is about to be finally removed, new code depending on that is short-lived.

ABataev abandoned this revision.Apr 28 2021, 4:44 AM