[PATCH] D14720: [llvm-profdata] Add SaturatingAdd/SaturatingMultiply Helper Functions

Nathan Slingerland via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 11:41:47 PST 2015


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

This change adds MathExtras helper functions for handling unsigned, saturating
addition and multiplication. It also updates the instrumentation and sample
profile merge implementations to use them.

http://reviews.llvm.org/D14720

Files:
  include/llvm/ProfileData/InstrProf.h
  include/llvm/ProfileData/SampleProf.h
  include/llvm/Support/MathExtras.h
  unittests/Support/MathExtrasTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14720.40317.patch
Type: text/x-patch
Size: 4823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151116/380f4318/attachment.bin>


More information about the llvm-commits mailing list