diff options
| author | Nathan Slingerland <slingn@gmail.com> | 2015-12-04 00:00:20 +0000 |
|---|---|---|
| committer | Nathan Slingerland <slingn@gmail.com> | 2015-12-04 00:00:20 +0000 |
| commit | 2a3dbe8be21a686d18f21fd1a5bcdbafc5c9a93a (patch) | |
| tree | c70acf671827b14976616f04a172df28577c7c93 /llvm/test/tools/llvm-profdata/Inputs | |
| parent | 09330577ffad57a63f51d5af0ffa1dc81d982781 (diff) | |
| download | bcm5719-llvm-2a3dbe8be21a686d18f21fd1a5bcdbafc5c9a93a.tar.gz bcm5719-llvm-2a3dbe8be21a686d18f21fd1a5bcdbafc5c9a93a.zip | |
[llvm-profdata] Add support for weighted merge of profile data
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.
Reviewers: dnovillo, bogner, davidxl
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14547
llvm-svn: 254669
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 |

