[llvm] [TailCallElim] Do not mark a call tail when it is handed the frame (PR #218797)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 09:51:29 PDT 2026


https://github.com/efriedma-quic commented:

Historically, we've provided limited guarantees about what functions that access values related to the current frame return: in particular, we don't block transforms like inlining.  I guess the issue here, specifically, is that the values in question point to memory that's freed when the function returns.  The approach here seems fine.

As a practical matter, most of these intrinsics are used pretty rarely, so probably this won't have much effect on most code.

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


More information about the llvm-commits mailing list