llvm/test/tools/llvm-profdata
Rong Xu c8872308b4 [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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284659 91177308-0d34-0410-b5e6-96231b3b80d8
2016-10-19 22:51:17 +00:00
..
Inputs [PGO] Fix bogus warning for merging empty llvm profile file 2016-10-19 22:51:17 +00:00
c-general.test [LLVM] Remove unwanted --check-prefix=CHECK from unit tests. NFC. 2016-04-19 23:51:52 +00:00
compat.proftext Add a compatibility test 2016-02-03 06:27:38 +00:00
count-mismatch.proftext [llvm-profdata] Improve error messaging when merging mismatched profile data 2015-11-17 22:08:53 +00:00
gcc-gcov-sample-profile.test SamplePGO - Sort samples by source location when emitting as text. 2015-11-19 15:33:08 +00:00
general.proftext Stop testing the unspecified order in which the OnDiskHashTable stores entries. 2016-03-26 02:02:59 +00:00
hash-mismatch.proftext InstrProf: Allow multiple functions with the same name 2014-08-01 22:50:07 +00:00
inline-samples.test [llvm-profdata] Bring back reading profile data from STDIN. 2016-07-22 12:39:55 +00:00
input-dir.test Fix test failure on Win 2016-07-20 22:53:39 +00:00
input-filenames.test Reapply r276185 2016-07-20 22:24:52 +00:00
lit.local.cfg llvm-profdata: Use consistent file suffixes in tests 2014-07-30 23:02:01 +00:00
merge_empty_profile.test [PGO] Fix bogus warning for merging empty llvm profile file 2016-10-19 22:51:17 +00:00
multiple-inputs.test Retry: [llvm-profdata] Speed up merging by using a thread pool 2016-07-19 01:17:20 +00:00
overflow-instr.test [PGO] Handle and report overflow during profile merge for all types of data 2015-12-16 21:45:43 +00:00
overflow-sample.test [PGO] Handle and report overflow during profile merge for all types of data 2015-12-16 21:45:43 +00:00
raw-32-bits-be.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
raw-32-bits-le.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
raw-64-bits-be.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
raw-64-bits-le.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
raw-magic-but-no-header.test [llvm-profdata] Add check for text profile formats and improve error reporting (2nd try) 2015-11-13 03:47:58 +00:00
raw-two-profiles.test [profile] Remove another unneeded field in raw profile reader 2016-05-06 02:13:00 +00:00
sample-profile-basic.test SamplePGO - Add dump routines for LineLocation, SampleRecord and FunctionSamples 2015-11-13 20:24:28 +00:00
text-dump.test [PGO] Add --text option for llvm-profdata show|merge commands 2015-11-23 20:47:38 +00:00
text-format-errors.test [llvm-profdata] Add support for weighted merge of profile data (2nd try) 2015-12-15 17:37:09 +00:00
value-prof.proftext [Profile] dump ic value profile value/site-count histogram 2016-09-20 21:04:22 +00:00
weight-instr.test Stop testing the unspecified order in which the OnDiskHashTable stores entries. 2016-03-26 02:02:59 +00:00
weight-sample.test [llvm-profdata] Add support for weighted merge of profile data (2nd try) 2015-12-15 17:37:09 +00:00