This is an archive of the discontinued LLVM Phabricator instance.

Fix for bugzilla https://bugs.llvm.org/show_bug.cgi?id=39137.
ClosedPublic

Authored by AndreyChurbanov on Nov 9 2018, 5:50 AM.

Details

Summary

Exit earlier from omp_set_num_threads in case requested number of threads is equal to num_threads ICV (internal control variable), in order to avoid unnecessary write.

Diff Detail

Repository
rL LLVM

Event Timeline

AndreyChurbanov created this revision.Nov 9 2018, 5:50 AM
hbae accepted this revision.Nov 9 2018, 8:51 AM

LGTM.

This revision is now accepted and ready to land.Nov 9 2018, 8:51 AM
This revision was automatically updated to reflect the committed changes.