[llvm] [PGO] Implement PGO counter promotion for atomic updates (PR #202487)
Wael Yehia via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 12:18:33 PDT 2026
================
@@ -567,6 +612,7 @@ class PGOCounterPromoter {
L.getLoopPreheader(), ExitBlocks,
InsertPts, LoopToCandidates, LI);
Promoter.run(SmallVector<Instruction *, 2>({Cand.first, Cand.second}));
+ Cand = {nullptr, nullptr};
----------------
w2yehia wrote:
I think an assert about LoopToCandidates.size() after each call to `Promoter.run(..)` makes sense. Is that what you had in mind?
https://github.com/llvm/llvm-project/pull/202487
More information about the llvm-commits
mailing list