diff --git a/llvm/docs/TestSuiteGuide.md b/llvm/docs/TestSuiteGuide.md --- a/llvm/docs/TestSuiteGuide.md +++ b/llvm/docs/TestSuiteGuide.md @@ -336,8 +336,9 @@ Example: ```bash -# Profile generation run: +# Profile generation run using LLVM IR PGO: % cmake -DTEST_SUITE_PROFILE_GENERATE=ON \ + -DTEST_SUITE_USE_IR_PGO=ON \ -DTEST_SUITE_RUN_TYPE=train \ ../test-suite % make @@ -351,6 +352,8 @@ % llvm-lit -o result.json . ``` +To use Clang frontend's PGO instead of LLVM IR PGO, set `-DTEST_SUITE_USE_IR_PGO=OFF`. + The `TEST_SUITE_RUN_TYPE` setting only affects the SPEC benchmark suites.