[llvm] [coro][CoroSplit] Use `llvm.lifetime.end` to compute putting objects on the frame vs the stack (PR #90265)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 6 09:04:50 PDT 2024


================
@@ -1550,13 +1556,16 @@ struct AllocaUseVisitor : PtrUseVisitor<AllocaUseVisitor> {
   }
 
   void visitIntrinsicInst(IntrinsicInst &II) {
+    if (II.getIntrinsicID() == Intrinsic::lifetime_end)
----------------
zmodem wrote:

There could be a "full" `lifetime.start` followed by a "partial" `lifetime.end`, so I think this matters. But the latest version of the PR handles that nicely.

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


More information about the llvm-commits mailing list