mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
c705f0e0e8
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
12 lines
338 B
Plaintext
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
|
|
|
|
|