llvm-project/llvm/lib/ProfileData
Rong Xu 2c684cfd94 [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
..
Coverage [Coverage] Support loading multiple binaries into a CoverageMapping 2016-10-14 17:16:53 +00:00
CMakeLists.txt
InstrProf.cpp [PGO] Fix bogus warning for merging empty llvm profile file 2016-10-19 22:51:17 +00:00
InstrProfReader.cpp [PGO] Fix bogus warning for merging empty llvm profile file 2016-10-19 22:51:17 +00:00
InstrProfWriter.cpp Use range algorithms instead of unpacking begin/end 2016-08-11 21:15:00 +00:00
LLVMBuild.txt
ProfileSummaryBuilder.cpp NFC Add const 2016-09-30 21:05:55 +00:00
SampleProf.cpp Add FIXMEs to all derived classes of std::error_category. 2016-05-24 20:13:46 +00:00
SampleProfReader.cpp [ProfileData] Clean up string handling a bit. 2016-05-29 10:31:00 +00:00
SampleProfWriter.cpp [ProfileData] Thread unique_ptr through the summary builder to avoid leaks. 2016-05-20 09:18:37 +00:00