[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
Thu Nov 16 15:09:59 PST 2023


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

should the minimal spanning tree code use this interface too?

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


More information about the llvm-commits mailing list