[llvm] [coro][pgo] Don't promote pgo counters in the suspend basic block (PR #71263)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 18:44:36 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);
----------------
mtrofin wrote:
Good idea - done. It needed a little rework - in the MST case we want to work with edges and block splitting the suspend faux edge. In the coro promotion case, we care about the basic block, and the property that none of the incoming edges is a faux suspend edge.
https://github.com/llvm/llvm-project/pull/71263
More information about the llvm-commits
mailing list