[PATCH] D14547: [llvm-profdata] Add support for weighted merge of profile data

Nathan Slingerland via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 11:10:36 PST 2015


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

This change adds a --weights=N,M,... option to the llvm-profdata tool.

Adding support for arbitrary weighting of input profile data allows for relative importance to be placed on the
input data from multiple training runs.

Both sampled and instrumented profiles are supported.

http://reviews.llvm.org/D14547

Files:
  include/llvm/ProfileData/InstrProfWriter.h
  include/llvm/ProfileData/SampleProf.h
  lib/ProfileData/InstrProfWriter.cpp
  test/tools/llvm-profdata/Inputs/weight-instr-bar.profdata
  test/tools/llvm-profdata/Inputs/weight-instr-foo.profdata
  test/tools/llvm-profdata/Inputs/weight-sample-bar.proftext
  test/tools/llvm-profdata/Inputs/weight-sample-foo.proftext
  test/tools/llvm-profdata/weight-instr.test
  test/tools/llvm-profdata/weight-sample.test
  tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14547.39836.patch
Type: text/x-patch
Size: 19340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151110/ac3a9f1d/attachment.bin>


More information about the llvm-commits mailing list