[clang] [clang] Fix description for fprofile-sample-use= on Windows (PR #117973)
Haohai Wen via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 27 23:41:13 PST 2024
https://github.com/HaohaiWen created https://github.com/llvm/llvm-project/pull/117973
We only support -fprofile-sample-use= for clang-cl.
>From 8a922dd6dc115878c5e488345885432b4ec9f16f Mon Sep 17 00:00:00 2001
From: Haohai Wen <haohai.wen at intel.com>
Date: Thu, 28 Nov 2024 15:38:44 +0800
Subject: [PATCH] [clang] Fix description for fprofile-sample-use= on Windows
We only support -fprofile-sample-use= for clang-cl.
---
clang/docs/UsersManual.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index e5d67bc58350c7..43b41a2a826890 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -2660,7 +2660,7 @@ usual build cycle when using sample profilers for optimization:
> clang-cl /O2 -gdwarf -gline-tables-only ^
/clang:-fdebug-info-for-profiling /clang:-funique-internal-linkage-names ^
- /fprofile-sample-use=code.prof code.cc /Fe:code -fuse-ld=lld /link /debug:dwarf
+ -fprofile-sample-use=code.prof code.cc /Fe:code -fuse-ld=lld /link /debug:dwarf
[OPTIONAL] Sampling-based profiles can have inaccuracies or missing block/
edge counters. The profile inference algorithm (profi) can be used to infer
@@ -2679,7 +2679,7 @@ usual build cycle when using sample profilers for optimization:
> clang-cl /clang:-fsample-profile-use-profi /O2 -gdwarf -gline-tables-only ^
/clang:-fdebug-info-for-profiling /clang:-funique-internal-linkage-names ^
- /fprofile-sample-use=code.prof code.cc /Fe:code -fuse-ld=lld /link /debug:dwarf
+ -fprofile-sample-use=code.prof code.cc /Fe:code -fuse-ld=lld /link /debug:dwarf
Sample Profile Formats
""""""""""""""""""""""
More information about the cfe-commits
mailing list