This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] AlwaysInline __kmpc_parallel_51 to improve inlining hueristics
ClosedPublic

Authored by jhuber6 on Aug 10 2021, 9:10 AM.

Details

Summary

This patch adds the AlwaysInline attribute to the __kmpc_parallel_51
device runtime call. This improves inlining heuristics which encourages
the indirect function pointer arguemnt to also be inlined. This greatly
improves performance for a few applications whose outlined regions were
not inlined otherwise.

Diff Detail

Event Timeline

jhuber6 created this revision.Aug 10 2021, 9:10 AM
jhuber6 requested review of this revision.Aug 10 2021, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2021, 9:10 AM
This revision is now accepted and ready to land.Aug 10 2021, 10:29 AM