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
47 lines
363 B
Plaintext
47 lines
363 B
Plaintext
# RUN: llvm-profdata order %s | FileCheck %s
|
|
|
|
# CHECK: a
|
|
# CHECK: b
|
|
# CHECK: c
|
|
# CHECK: x
|
|
|
|
# Header
|
|
:ir
|
|
:temporal_prof_traces
|
|
# Num Traces
|
|
3
|
|
# Trace Stream Size:
|
|
3
|
|
# Weight
|
|
1
|
|
a, main.c:b, c
|
|
# Weight
|
|
1
|
|
a, x, main.c:b, c
|
|
# Weight
|
|
1
|
|
a, main.c:b, c
|
|
|
|
a
|
|
# Func Hash:
|
|
0x1234
|
|
# Num Counters:
|
|
1
|
|
# Counter Values:
|
|
101
|
|
|
|
main.c:b
|
|
0x5678
|
|
1
|
|
202
|
|
|
|
c
|
|
0xabcd
|
|
1
|
|
303
|
|
|
|
x
|
|
0xefff
|
|
1
|
|
404
|