[llvm] [coro][pgo] Don't promote pgo counters in the suspend basic block (PR #71263)
    David Li via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Nov 15 12:41:17 PST 2023
    
    
  
================
@@ -242,8 +242,16 @@ class PGOCounterPromoter {
     if (!isPromotionPossible(&L, LoopExitBlocks))
       return;
 
+    auto IsSuspendBB = [&](BasicBlock *BB) {
----------------
david-xl wrote:
can this be a common utility function somewhere such as BasicBlockUtils.h?
https://github.com/llvm/llvm-project/pull/71263
    
    
More information about the llvm-commits
mailing list