This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP]Fix PR51349: Remove AlwaysInline for if regions.
ClosedPublic

Authored by jhuber6 on Aug 6 2021, 8:01 AM.

Details

Summary

After D94315 we add the NoInline attribute to the outlined function to handle
data environments in the OpenMP if clause. This conflicted with the AlwaysInline
attribute added to the outlined function. for better performance in D106799.
The data environments should ideally not require NoInline, but for now this
fixes PR51349.

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 6 2021, 8:01 AM
jhuber6 requested review of this revision.Aug 6 2021, 8:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2021, 8:01 AM

Works for the test we have. What about a lit test for this?

jhuber6 updated this revision to Diff 364844.Aug 6 2021, 10:58 AM

Adding test

mikerice accepted this revision.Aug 6 2021, 2:13 PM

LGTM.

This revision is now accepted and ready to land.Aug 6 2021, 2:13 PM
This revision was automatically updated to reflect the committed changes.