[PATCH] D28965: [PGO] Value profile for size of memory intrinsic calls

Rong Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 13:23:15 PST 2017


xur created this revision.

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.


https://reviews.llvm.org/D28965

Files:
  include/llvm/IR/IntrinsicInst.h
  include/llvm/IR/Intrinsics.td
  include/llvm/ProfileData/InstrProf.h
  include/llvm/ProfileData/InstrProfData.inc
  lib/ProfileData/InstrProf.cpp
  lib/Transforms/Instrumentation/InstrProfiling.cpp
  lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  test/Instrumentation/InstrProfiling/PR23499.ll
  test/Instrumentation/InstrProfiling/icall.ll
  test/Transforms/PGOProfile/comdat_internal.ll
  test/Transforms/PGOProfile/memcpy.ll
  tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28965.85179.patch
Type: text/x-patch
Size: 27125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170120/c4ff772a/attachment-0001.bin>


More information about the llvm-commits mailing list