diff options
author | Rong Xu <xur@google.com> | 2017-10-05 17:05:20 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2017-10-05 17:05:20 +0000 |
commit | 289da656988f54a36103c03aff80a74c3769bb15 (patch) | |
tree | 3f8d4304bb74af1e5fcd041d134ed5eeda673e88 /llvm/test/tools/llvm-profdata/Inputs/multiple-profdata-merge.proftext | |
parent | dcd2169380149e33dd7e9ac0af0ff19575592dcc (diff) | |
download | bcm5719-llvm-289da656988f54a36103c03aff80a74c3769bb15.tar.gz bcm5719-llvm-289da656988f54a36103c03aff80a74c3769bb15.zip |
[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
Diffstat (limited to 'llvm/test/tools/llvm-profdata/Inputs/multiple-profdata-merge.proftext')
-rw-r--r-- | llvm/test/tools/llvm-profdata/Inputs/multiple-profdata-merge.proftext | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/multiple-profdata-merge.proftext b/llvm/test/tools/llvm-profdata/Inputs/multiple-profdata-merge.proftext new file mode 100644 index 00000000000..090a40f2da6 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/multiple-profdata-merge.proftext @@ -0,0 +1,106 @@ +# IR level Instrumentation Flag +:ir +foo +# Func Hash: +36982789018 +# Num Counters: +4 +# Counter Values: +700000 +700000 +0 +0 + +foo +# Func Hash: +59188585735 +# Num Counters: +6 +# Counter Values: +400000 +400000 +0 +0 +0 +0 + +foo +# Func Hash: +27904764724 +# Num Counters: +3 +# Counter Values: +200000 +200000 +0 + +foo +# Func Hash: +60466382370 +# Num Counters: +6 +# Counter Values: +0 +100000 +0 +0 +0 +0 + +bar +# Func Hash: +12884901887 +# Num Counters: +1 +# Counter Values: +0 + +foo2 +# Func Hash: +12884901887 +# Num Counters: +1 +# Counter Values: +0 + +foo3 +# Func Hash: +12884901887 +# Num Counters: +1 +# Counter Values: +0 + +foo4 +# Func Hash: +12884901887 +# Num Counters: +1 +# Counter Values: +0 + +foo5 +# Func Hash: +12884901887 +# Num Counters: +1 +# Counter Values: +0 + +foo1 +# Func Hash: +12884901887 +# Num Counters: +1 +# Counter Values: +100000 + +main +# Func Hash: +29212902728 +# Num Counters: +2 +# Counter Values: +1400000 +14 + |