[PATCH] D142994: [UsersManual] Add llvm-progen as an alternative tool for AutoFDO profile generation.
Hongtao Yu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 20 13:26:52 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG56e36e47f504: [UsersManual] Add llvm-progen as an alternative tool for AutoFDO profileā¦ (authored by hoy).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142994/new/
https://reviews.llvm.org/D142994
Files:
clang/docs/UsersManual.rst
Index: clang/docs/UsersManual.rst
===================================================================
--- clang/docs/UsersManual.rst
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142994.533031.patch
Type: text/x-patch
Size: 724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230620/4be1db2d/attachment.bin>
More information about the cfe-commits
mailing list