This is an archive of the discontinued LLVM Phabricator instance.

[InstrProf] Fix BalancedPartitioning when threads are disabled
ClosedPublic

Authored by ellis on Jun 7 2023, 11:16 AM.

Details

Summary

In https://reviews.llvm.org/D147812 we introduced the class
BalancedPartitioning which includes some threading code. The tests in
that diff run forever when built with -DLLVM_ENABLE_THREADS=OFF so
some bots were broken.

These tests were skipped in
https://reviews.llvm.org/rGa4845eaf2e9aa18dd900d7cbeff4e5ff52e4b50e
because of this.

This diff disables the threading code if LLVM_ENABLE_THREADS is
disabled so we can re-enable the tests.

Diff Detail

Event Timeline

ellis created this revision.Jun 7 2023, 11:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 11:16 AM
ellis requested review of this revision.Jun 7 2023, 11:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 11:16 AM
luporl accepted this revision.Jun 7 2023, 11:53 AM

LGTM. I was able to run check-all locally without issues with this patch.

Thanks for the quick fix!

This revision is now accepted and ready to land.Jun 7 2023, 11:53 AM
This revision was landed with ongoing or failed builds.Jun 7 2023, 12:04 PM
This revision was automatically updated to reflect the committed changes.