[all-commits] [llvm/llvm-project] c1d935: [InstrProf] Fix BalancedPartitioning when threads ...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Wed Jun 7 12:04:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1d935ece34679679bf0f5f52eb20cf3683949ae
      https://github.com/llvm/llvm-project/commit/c1d935ece34679679bf0f5f52eb20cf3683949ae
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M llvm/lib/Support/BalancedPartitioning.cpp
    M llvm/test/tools/llvm-profdata/show-order.proftext
    M llvm/unittests/Support/BalancedPartitioningTest.cpp

  Log Message:
  -----------
  [InstrProf] Fix BalancedPartitioning when threads are disabled

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.

Reviewed By: luporl

Differential Revision: https://reviews.llvm.org/D152390




More information about the All-commits mailing list