[PATCH] D17006: Refactor PGO function naming and MD5 hashing support out of ProfileData

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 8 16:06:24 PST 2016


tejohnson created this revision.
tejohnson added a reviewer: davidxl.
tejohnson added a subscriber: llvm-commits.

Move the function renaming logic into the Function class, and the
MD5Hash routine into the MD5 header.

This will enable these routines to be shared with ThinLTO, which
will be changed to store the MD5 hash instead of full function name
in the combined index for significant size reductions. And using the same
function naming for locals in the function index facilitates future
integration with indirect call value profiles.

http://reviews.llvm.org/D17006

Files:
  include/llvm/IR/Function.h
  include/llvm/ProfileData/InstrProf.h
  include/llvm/Support/MD5.h
  lib/IR/Function.cpp
  lib/ProfileData/InstrProf.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17006.47268.patch
Type: text/x-patch
Size: 5135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160209/26cbed31/attachment.bin>


More information about the llvm-commits mailing list