[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
Thu May 2 12:15:40 PDT 2024
================
@@ -1550,13 +1556,16 @@ struct AllocaUseVisitor : PtrUseVisitor<AllocaUseVisitor> {
}
void visitIntrinsicInst(IntrinsicInst &II) {
+ if (II.getIntrinsicID() == Intrinsic::lifetime_end)
----------------
zmodem wrote:
Should this also take into account if the lifetime marker only applies to a subrange of the alloca (like below)?
https://github.com/llvm/llvm-project/pull/90265
More information about the llvm-commits
mailing list