[llvm] Handle lifetime.end-only allocas (PR #210581)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 21 03:08:35 PDT 2026


SomeFlyingThing wrote:

> What's the motivation for this change?


rn an alloca without any lifetime.start is assigned a full-function live range, even if it has a lifetime.end. bcs of that, isAliveAfter() reports it as alive after that marker

This matters in for StackSafetyAnalysis, which uses isAliveAfter() to conservatively reject accesses outside an alloca's lifetime.
rn, an in-bounds access after an end-only lifetime.end may still be treated as occurring during the lifetime

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


More information about the llvm-commits mailing list