[llvm] [CoroEarly] Hide promise alloca for later passes (PR #139243)

Chuanqi Xu via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 20:00:15 PDT 2025


================
@@ -175,6 +199,23 @@ void Lowerer::lowerEarlyIntrinsics(Function &F) {
     switch (CB->getIntrinsicID()) {
       default:
         continue;
+      case Intrinsic::coro_begin:
+      case Intrinsic::coro_begin_custom_abi: {
+        auto CBI = cast<CoroBeginInst>(&I);
+
+        // Ignore coro id's that aren't pre-split.
+        auto Id = dyn_cast<CoroIdInst>(CBI->getId());
+        if (Id && !Id->getInfo().isPreSplit())
----------------
ChuanqiXu9 wrote:

When do we have non-presplit coroutine in CoroEarly?

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


More information about the llvm-commits mailing list