diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -2400,6 +2400,14 @@ without the ``-b`` flag, you need to use ``--use_lbr=false`` when calling ``create_llvm_prof``. + Alternatively, the LLVM tool ``llvm-profgen`` can also be used to generate + the LLVM sample profile: + + .. code-block:: console + + $ llvm-profgen --binary=./code --output=code.prof--perfdata=perf.data + + 4. Build the code again using the collected profile. This step feeds the profile back to the optimizers. This should result in a binary that executes faster than the original one. Note that you are not