[llvm] [IR] LangRef: document behavior of double-lifetime.start (PR #184296)

Nuno Lopes via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 02:17:52 PST 2026


nunoplopes wrote:

> Did the LangRef once say what the semantics of this are and then removed it? That seems odd.

Yes, but that was for heap allocations. It would poison all the data on each start.


> Are there currently optimizations that constrain us one way or the other?

No, not that I'm aware of. But I haven't checked the stack coloring algorithm to understand if it handles double start correctly. In principle, it can be fixed if not, but we need to double check the implementation.

Would love to see examples from Rust to motivate the semantics going into a specific way.

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


More information about the llvm-commits mailing list