1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/tools/llvm-profdata/multiple-profdata-merge.test
Rong Xu c705f0e0e8 [ProfileData] Fix data racing in merging indexed profiles
There is data racing to the static variable RecordIndex in index profile reader
when merging in multiple threads. Make it a member variable in
IndexedInstrProfReader to fix this.

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

llvm-svn: 314990
2017-10-05 17:05:20 +00:00

12 lines
338 B
Plaintext

Test multi-thread merge of multiple profdata files.
RUN: llvm-profdata merge %p/Inputs/multiple-profdata-merge.proftext -o %t
RUN: llvm-profdata merge -j 4 %t %t %t %t -o %t_2
RUN: llvm-profdata show %t_2 | FileCheck %s
; CHECK:Total functions: 11
; CHECK:Maximum function count: 5600000
; CHECK:Maximum internal block count: 2800000