1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

HowToBuildWithPGO.rst: Fix a few details in the manual steps

Differential revision: https://reviews.llvm.org/D55268

llvm-svn: 348342
This commit is contained in:
Hans Wennborg 2018-12-05 08:35:30 +00:00
parent 8dd94abc04
commit 69ba78a8d8

View File

@ -125,12 +125,12 @@ In more detailed steps:
It's recommended to build the ``all`` target with your instrumented Clang, It's recommended to build the ``all`` target with your instrumented Clang,
since more coverage is often better. since more coverage is often better.
b. You should now have a few ``*.profdata`` files in b. You should now have a few ``*.profraw`` files in
``path/to/stage2/profiles/``. You need to merge these using ``path/to/stage2/profiles/``. You need to merge these using
``llvm-profdata`` (even if you only have one! The profile merge transforms ``llvm-profdata`` (even if you only have one! The profile merge transforms
profraw into actual profile data, as well). This can be done with profraw into actual profile data, as well). This can be done with
``/path/to/stage1/llvm-profdata -merge ``/path/to/stage1/llvm-profdata merge
-output=/path/to/output/profdata.prof path/to/stage2/profiles/*.profdata``. -output=/path/to/output/profdata.prof path/to/stage2/profiles/*.profraw``.
4. Now, build your final, PGO-optimized Clang. To do this, you'll want to pass 4. Now, build your final, PGO-optimized Clang. To do this, you'll want to pass
the following additional arguments to CMake. the following additional arguments to CMake.