[PATCH] D25687: [PGO] fix bogus warning for merging empty llvm profile file
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 14:51:40 PDT 2016
xur updated this revision to Diff 75233.
xur added a comment.
Followed vsk's suggestion to use a new error code for empty file case.
Note that this does not apply to indexed profile where we don't expected empty file (in which case, we will report a format error).
Also changed to use 'touch' rather than the empty profile in Inputs (suggested by david).
-Rong
https://reviews.llvm.org/D25687
Files:
include/llvm/ProfileData/InstrProf.h
lib/ProfileData/InstrProf.cpp
lib/ProfileData/InstrProfReader.cpp
test/tools/llvm-profdata/Inputs/IR_profile.proftext
test/tools/llvm-profdata/Inputs/clang_profile.proftext
test/tools/llvm-profdata/merge_empty_profile.test
tools/llvm-profdata/llvm-profdata.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25687.75233.patch
Type: text/x-patch
Size: 3749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161019/ced69c30/attachment.bin>
More information about the llvm-commits
mailing list