[clang] [llvm] [RFC][Coroutines] Implement HALO for coroutines that flow off final suspend (PR #185336)

Chuanqi Xu via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 8 20:38:01 PDT 2026


================
@@ -249,8 +259,8 @@ bool CoroIdElider::canCoroBeginEscape(
   Worklist.push_back(CB->getParent());
 
   SmallPtrSet<const BasicBlock *, 32> Visited;
-  // Consider basicblock of coro.destroy as visited one, so that we
-  // skip the path pass through coro.destroy.
+  // Consider basicblock of coro.dead as visited one, so that we
----------------
ChuanqiXu9 wrote:

In accurate comment?  BeginDeadMap may contain destroy too?

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


More information about the llvm-commits mailing list