[PATCH] D14893: [llvm-profdata] Change instr prof counter overflow to saturate rather than discard
    Nathan Slingerland via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Nov 20 15:54:40 PST 2015
    
    
  
slingn created this revision.
slingn added reviewers: dnovillo, davidxl, silvas.
slingn added a subscriber: llvm-commits.
This changes overflow handling during instrumentation profile merge. Rathar than throwing away records that would result in counter overflow, merged counts are instead clamped to the maximum representable value. A warning about counter overflow is still surfaced to the user as before.
http://reviews.llvm.org/D14893
Files:
  include/llvm/ProfileData/InstrProf.h
  lib/ProfileData/InstrProfWriter.cpp
  test/tools/llvm-profdata/overflow.proftext
  unittests/ProfileData/InstrProfTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14893.40841.patch
Type: text/x-patch
Size: 4225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151120/b12d2137/attachment.bin>
    
    
More information about the llvm-commits
mailing list