[PATCH] D129001: [PGO] Report number of counts being dropped when a hash-mismatch happens.

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 1 09:48:11 PDT 2022


xur created this revision.
xur added a reviewer: davidxl.
Herald added subscribers: Enna1, wenlei, hiraditya.
Herald added a project: All.
xur requested review of this revision.
Herald added a project: LLVM.

This patch reports number of counts being dropped when a hash-mismatch
happens. This information will be helpful to the users -- if the dropped
counts are large, the user should redo the instrumentation build and
recollect the profile.


https://reviews.llvm.org/D129001

Files:
  llvm/include/llvm/ProfileData/InstrProfReader.h
  llvm/lib/ProfileData/InstrProfReader.cpp
  llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  llvm/test/Transforms/PGOProfile/Inputs/diag.proftext
  llvm/test/Transforms/PGOProfile/diag_mismatch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129001.441717.patch
Type: text/x-patch
Size: 5251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220701/4fdc86a4/attachment.bin>


More information about the llvm-commits mailing list