[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 Jan 31 10:20:26 PST 2023
hoy created this revision.
Herald added subscribers: modimo, wenlei.
Herald added a project: All.
hoy requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Test Plan:
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142994
Files:
clang/docs/UsersManual.rst
Index: clang/docs/UsersManual.rst
===================================================================
--- clang/docs/UsersManual.rst
+++ clang/docs/UsersManual.rst
@@ -2294,6 +2294,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.493663.patch
Type: text/x-patch
Size: 724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230131/9b03b7be/attachment.bin>
More information about the cfe-commits
mailing list