[clang] [Clang][Docs] Improve -fcs-profile-generate documentation (PR #239616)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 10 03:34:29 PST 2026


================
@@ -3515,9 +3515,14 @@ better runtime performance. Frontend-based instrumentation, on the other hand,
 has better source correlation, so it should be used with source line-based
 coverage testing.
 
-The flag `-fcs-profile-generate` also instruments programs using the same
-instrumentation method as `-fprofile-generate`. However, it performs a
-post-inline late instrumentation and can produce context-sensitive profiles.
+To consider context-sensitive information in profile data, an additional
----------------
andreasmullen wrote:

Thanks for the feedback. The intent behind my changes is to ensure that there is a guide someone can use when collecting context-sensitive information, as described [here](https://discourse.llvm.org/t/speedup-of-clang-build-with-pgo-and-bolt-on-aarch64/85118/2?u=peterwaller-arm). 

I have just committed some changes showing that `-fcs-profile-generate` can be used on its own, as well as making the section on the first stage shorter reducing some redundant explanation. 

https://github.com/llvm/llvm-project/pull/239616


More information about the cfe-commits mailing list