diff options
| author | Nathan Slingerland <slingn@gmail.com> | 2015-12-15 17:37:09 +0000 |
|---|---|---|
| committer | Nathan Slingerland <slingn@gmail.com> | 2015-12-15 17:37:09 +0000 |
| commit | 7f5b47ddd46fb5bfc4cff67cb09bbf2d889d45cc (patch) | |
| tree | 26e5733d95c97634fc29e41af391bc8e67d968b9 /llvm/test/tools/llvm-profdata/Inputs | |
| parent | 78fd4f087b0832bdfef1c7db54bc234002e2ff30 (diff) | |
| download | bcm5719-llvm-7f5b47ddd46fb5bfc4cff67cb09bbf2d889d45cc.tar.gz bcm5719-llvm-7f5b47ddd46fb5bfc4cff67cb09bbf2d889d45cc.zip | |
[llvm-profdata] Add support for weighted merge of profile data (2nd try)
Summary:
This change adds support for specifying a weight when merging profile data with the llvm-profdata tool.
Weights are specified by using the --weighted-input=<weight>,<filename> option. Input files not specified
with this option (normal positional list after options) are given a default weight of 1.
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.
Reviewers: davidxl, dnovillo, bogner, silvas
Subscribers: silvas, davidxl, llvm-commits
Differential Revision: http://reviews.llvm.org/D15306
llvm-svn: 255659
Diffstat (limited to 'llvm/test/tools/llvm-profdata/Inputs')
| -rw-r--r-- | llvm/test/tools/llvm-profdata/Inputs/weight-instr-bar.profdata | bin | 0 -> 1320 bytes | |||
| -rw-r--r-- | llvm/test/tools/llvm-profdata/Inputs/weight-instr-foo.profdata | bin | 0 -> 1320 bytes | |||
| -rw-r--r-- | llvm/test/tools/llvm-profdata/Inputs/weight-sample-bar.proftext | 8 | ||||
| -rw-r--r-- | llvm/test/tools/llvm-profdata/Inputs/weight-sample-foo.proftext | 8 |
4 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/weight-instr-bar.profdata b/llvm/test/tools/llvm-profdata/Inputs/weight-instr-bar.profdata Binary files differnew file mode 100644 index 00000000000..4ed07660f65 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/weight-instr-bar.profdata diff --git a/llvm/test/tools/llvm-profdata/Inputs/weight-instr-foo.profdata b/llvm/test/tools/llvm-profdata/Inputs/weight-instr-foo.profdata Binary files differnew file mode 100644 index 00000000000..581ef39a55b --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/weight-instr-foo.profdata diff --git a/llvm/test/tools/llvm-profdata/Inputs/weight-sample-bar.proftext b/llvm/test/tools/llvm-profdata/Inputs/weight-sample-bar.proftext new file mode 100644 index 00000000000..a910f745e6c --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/weight-sample-bar.proftext @@ -0,0 +1,8 @@ +bar:1772037:35370 + 17: 35370 + 18: 35370 + 19: 7005 + 20: 29407 + 21: 12170 + 23: 18150 bar:19829 + 25: 36666 diff --git a/llvm/test/tools/llvm-profdata/Inputs/weight-sample-foo.proftext b/llvm/test/tools/llvm-profdata/Inputs/weight-sample-foo.proftext new file mode 100644 index 00000000000..155ec5d0031 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/weight-sample-foo.proftext @@ -0,0 +1,8 @@ +foo:1763288:35327 + 7: 35327 + 8: 35327 + 9: 6930 + 10: 29341 + 11: 11906 + 13: 18185 foo:19531 + 15: 36458 |

