1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/tools/llvm-profdata
Rong Xu 040e4952d0 [PGO] Fix bogus warning for merging empty llvm profile file
Profile runtime can generate an empty raw profile (when there is no function in
the shared library). This empty profile is treated as a text format profile.  A
test format profile without the flag of "#IR" is thought to be a clang
generated profile.  So in llvm profile merging, we will get a bogus warning of
"Merge IR generated profile with Clang generated profile."

The fix here is to skip the empty profile (when the buffer size is 0) for
profile merge.

Reviewers: vsk, davidxl

Differential Revision: http://reviews.llvm.org/D25687

llvm-svn: 284659
2016-10-19 22:51:17 +00:00
..
Inputs
c-general.test
compat.proftext
count-mismatch.proftext
gcc-gcov-sample-profile.test
general.proftext
hash-mismatch.proftext
inline-samples.test
input-dir.test
input-filenames.test
lit.local.cfg
merge_empty_profile.test
multiple-inputs.test
overflow-instr.test
overflow-sample.test
raw-32-bits-be.test
raw-32-bits-le.test
raw-64-bits-be.test
raw-64-bits-le.test
raw-magic-but-no-header.test
raw-two-profiles.test
sample-profile-basic.test
text-dump.test
text-format-errors.test
value-prof.proftext
weight-instr.test
weight-sample.test