[Mlir-commits] [mlir] Extend `retcon.once` coroutines lowering to optionally produce a normal result (PR #66333)

Chuanqi Xu llvmlistbot at llvm.org
Thu Sep 14 00:58:05 PDT 2023


================
@@ -3046,7 +3046,8 @@ void coro::buildCoroutineFrame(
   // Collect the spills for arguments and other not-materializable values.
   for (Argument &A : F.args())
     for (User *U : A.users())
-      if (Checker.isDefinitionAcrossSuspend(A, U))
+      if (Checker.isDefinitionAcrossSuspend(A, U) ||
+          isa<CoroEndInst>(U))
----------------
ChuanqiXu9 wrote:

We do we need to include CoroEnd explicitly here?

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


More information about the Mlir-commits mailing list