This patch adds the value profile support to profile the size parameter of
memory intrinsic calls: memcpy, memcmp, and memmove.
We have two adjustable parameters: SmallVal and LargeVal size less than or equal to SmallVal will be precisely profiled. size greater than SmallVal but less than LargeVal will have one count size greater than or equal to LargeVale will have one count.
The patch has dependency on the profile value range support in compiler_rt:
https://reviews.llvm.org/D28964.
Perhaps make it a string option with both start and end values specified:
MemOpSizeValueRange