From 2a3dbe8be21a686d18f21fd1a5bcdbafc5c9a93a Mon Sep 17 00:00:00 2001 From: Nathan Slingerland Date: Fri, 4 Dec 2015 00:00:20 +0000 Subject: [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 ':' 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 --- llvm/docs/CommandGuide/llvm-profdata.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'llvm/docs/CommandGuide/llvm-profdata.rst') diff --git a/llvm/docs/CommandGuide/llvm-profdata.rst b/llvm/docs/CommandGuide/llvm-profdata.rst index 210826a7bab..a4b18f301e4 100644 --- a/llvm/docs/CommandGuide/llvm-profdata.rst +++ b/llvm/docs/CommandGuide/llvm-profdata.rst @@ -28,7 +28,7 @@ MERGE SYNOPSIS ^^^^^^^^ -:program:`llvm-profdata merge` [*options*] [*filenames...*] +:program:`llvm-profdata merge` [*options*] [*filename[:weight]...*] DESCRIPTION ^^^^^^^^^^^ @@ -37,6 +37,10 @@ DESCRIPTION generated by PGO instrumentation and merges them together into a single indexed profile data file. +The profile counts in each input file can be scaled (multiplied) by specifying +``:``, where `` is a decimal integer >= 1. +A default weight of 1 is assumed if only `` is given. + OPTIONS ^^^^^^^ -- cgit v1.2.3