[llvm] [coro][pgo] Don't promote pgo counters in the suspend basic block (PR #71263)

Chuanqi Xu via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 27 18:17:53 PST 2023


================
@@ -705,6 +705,9 @@ void InvertBranch(BranchInst *PBI, IRBuilderBase &Builder);
 // Check whether the function only has simple terminator:
 // br/brcond/unreachable/ret
 bool hasOnlySimpleTerminator(const Function &F);
+
+bool isPresplitCoroSuspendExitEdge(const BasicBlock &Src,
----------------
ChuanqiXu9 wrote:

nit: Let's add some comments for this. Especially all other function in Utils.h have a lot of comments.

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


More information about the llvm-commits mailing list