diff options
author | Vedant Kumar <vsk@apple.com> | 2019-09-03 22:23:16 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2019-09-03 22:23:16 +0000 |
commit | 0fcfe8971798e08cc2df0e56454e8464c5760d67 (patch) | |
tree | 26737259a58a2bc7b2644f0c878c5f4cece76352 /llvm/docs/CommandGuide/llvm-profdata.rst | |
parent | 95fb23ab37e5e348788bb34623ebdc1e583e1ec8 (diff) | |
download | bcm5719-llvm-0fcfe8971798e08cc2df0e56454e8464c5760d67.tar.gz bcm5719-llvm-0fcfe8971798e08cc2df0e56454e8464c5760d67.zip |
[llvm-profdata] Add mode to recover from profile read failures
Add a mode in which profile read errors are not immediately treated as
fatal. In this mode, merging makes forward progress and reports failure
only if no inputs can be read.
Differential Revision: https://reviews.llvm.org/D66985
llvm-svn: 370827
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-profdata.rst')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-profdata.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-profdata.rst b/llvm/docs/CommandGuide/llvm-profdata.rst index acb044e2bf1..4ebf88f0253 100644 --- a/llvm/docs/CommandGuide/llvm-profdata.rst +++ b/llvm/docs/CommandGuide/llvm-profdata.rst @@ -124,6 +124,14 @@ OPTIONS Use N threads to perform profile merging. When N=0, llvm-profdata auto-detects an appropriate number of threads to use. This is the default. +.. option:: -failure-mode=[any|all] + + Set the failure mode. There are two options: 'any' causes the merge command to + fail if any profiles are invalid, and 'all' causes the merge command to fail + only if all profiles are invalid. If 'all' is set, information from any + invalid profiles is excluded from the final merged product. The default + failure mode is 'any'. + EXAMPLES ^^^^^^^^ Basic Usage |