From 00dab22853e7e49186783cdf64232e8a97274573 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Fri, 29 Jan 2016 22:54:45 +0000 Subject: [Profiling] Add a -sparse mode to llvm-profdata merge Add an option to llvm-profdata merge for writing out sparse indexed profiles. These profiles omit InstrProfRecords for functions which are never executed. Differential Revision: http://reviews.llvm.org/D16727 llvm-svn: 259258 --- llvm/docs/CommandGuide/llvm-profdata.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/docs/CommandGuide') diff --git a/llvm/docs/CommandGuide/llvm-profdata.rst b/llvm/docs/CommandGuide/llvm-profdata.rst index 74fe4ee9d21..7f647ef1c47 100644 --- a/llvm/docs/CommandGuide/llvm-profdata.rst +++ b/llvm/docs/CommandGuide/llvm-profdata.rst @@ -90,6 +90,12 @@ OPTIONS Emit the profile using GCC's gcov format (Not yet supported). + .. option:: -sparse[=true|false] + + Do not emit function records with 0 execution count. Can only be used in + conjunction with -instr. Defaults to false, since it can inhibit compiler + optimization during PGO. + EXAMPLES ^^^^^^^^ Basic Usage -- cgit v1.2.3