[clang] [llvm] [PGO] Implement PGO counter promotion for atomic updates (PR #202487)

David Li via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 18 09:40:28 PDT 2026


================
@@ -524,6 +547,16 @@ class PGOCounterPromoter {
   }
 
   bool run(int64_t *NumPromoted) {
+    bool RC = promoteCandidates(NumPromoted);
+    if (IsAtomic)
----------------
david-xl wrote:

Add a comment about this step.

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


More information about the cfe-commits mailing list