This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add RTL function to externalization RAII

Authored by jhuber6 on Feb 17 2022, 10:24 AM.



This patch adds the '_kmpc_get_hardware_num_threads_in_block'
OpenMP RTL function to the externalization RAII struct. This was getting
optimized out and then being replaced with an undefined value once added
back in, causing bugs for complex reductions.

Fixes #53909.

Diff Detail

Event Timeline

jhuber6 created this revision.Feb 17 2022, 10:24 AM
jhuber6 requested review of this revision.Feb 17 2022, 10:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2022, 10:24 AM
jdoerfert accepted this revision.Feb 17 2022, 10:25 AM

LG. FTR, same principle as D114802.

This revision is now accepted and ready to land.Feb 17 2022, 10:25 AM
This revision was landed with ongoing or failed builds.Feb 17 2022, 11:31 AM
This revision was automatically updated to reflect the committed changes.