[PATCH] D15306: [llvm-profdata] Add support for weighted merge of profile data (2nd try)
Nathan Slingerland via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 7 14:13:18 PST 2015
slingn created this revision.
slingn added a reviewer: davidxl.
slingn added a subscriber: llvm-commits.
This change adds support for an optional weight when merging profile data with the llvm-profdata tool.
Weights are specified by adding an option ':<weight>' suffix to the input file names.
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/D15306
Files:
docs/CommandGuide/llvm-profdata.rst
include/llvm/ProfileData/InstrProf.h
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
unittests/ProfileData/InstrProfTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15306.42106.patch
Type: text/x-patch
Size: 22840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151207/7e272967/attachment.bin>
More information about the llvm-commits
mailing list