[PATCH] D81682: [PGO] Extend the value profile buckets for mem op sizes.

Hiroshi Yamauchi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 12:40:53 PDT 2020


yamauchi created this revision.
yamauchi added a reviewer: davidxl.
Herald added subscribers: Sanitizers, hiraditya, mgorny.
Herald added projects: Sanitizers, LLVM.

Extend the memop value profile buckets to be more flexible (could accommodate a
mix of individual values and ranges) and to cover more value ranges (from 11 to
22 buckets).

Disabled behind a flag (to be enabled separately) and the existing code to be
removed later.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81682

Files:
  compiler-rt/include/profile/InstrProfData.inc
  compiler-rt/lib/profile/InstrProfilingValue.c
  llvm/include/llvm/ProfileData/InstrProf.h
  llvm/include/llvm/ProfileData/InstrProfData.inc
  llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h
  llvm/lib/ProfileData/InstrProf.cpp
  llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
  llvm/lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  llvm/test/Transforms/PGOProfile/memcpy.ll
  llvm/test/Transforms/PGOProfile/memop_profile_funclet.ll
  llvm/unittests/ProfileData/CMakeLists.txt
  llvm/unittests/ProfileData/InstrProfDataTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81682.270203.patch
Type: text/x-patch
Size: 28638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200611/71888801/attachment.bin>


More information about the llvm-commits mailing list