[PATCH] D15547: [PGO] Handle and report overflow during profile merge for all types of data

Nathan Slingerland via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 15 16:22:10 PST 2015


slingn created this revision.
slingn added reviewers: davidxl, dnovillo, silvas.
slingn added a subscriber: llvm-commits.

Surface counter overflow when merging profile data. Merging still occurs on overflow but counts saturate to the maximum representable value. Overflow is reported to the user.

http://reviews.llvm.org/D15547

Files:
  include/llvm/ProfileData/InstrProf.h
  include/llvm/ProfileData/SampleProf.h
  lib/ProfileData/SampleProf.cpp
  lib/ProfileData/SampleProfReader.cpp
  test/tools/llvm-profdata/Inputs/overflow-instr.proftext
  test/tools/llvm-profdata/Inputs/overflow-sample.proftext
  test/tools/llvm-profdata/overflow-instr.test
  test/tools/llvm-profdata/overflow-sample.test
  test/tools/llvm-profdata/overflow.proftext
  tools/llvm-profdata/llvm-profdata.cpp
  unittests/ProfileData/InstrProfTest.cpp
  unittests/ProfileData/SampleProfTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15547.42937.patch
Type: text/x-patch
Size: 24641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151216/8216bf5a/attachment.bin>


More information about the llvm-commits mailing list