Skip to content

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Aug 1, 2025

The lifetime argument is now required to be an alloca, so do not try to convert it to a function argument.

The reduction is now going to leave behind an unused alloca with lifetime markers, which should be cleaned up separately.

I'd say this fixes #93713. It doesn't remove the lifetime markers as the issue suggests, but at least they're now not going to be on the argument.

The lifetime argument is now required to be an alloca, so do not
try to convert it to a function argument.

The reduction is now going to leave behind an unused alloca with
lifetime markers, which should be cleaned up separately.
@nikic nikic merged commit c4c0a59 into llvm:main Aug 1, 2025
11 checks passed
@nikic nikic deleted the llvm-reduce-arg-lifetime branch August 1, 2025 13:34
krishna2803 pushed a commit to krishna2803/llvm-project that referenced this pull request Aug 12, 2025
The lifetime argument is now required to be an alloca, so do not try to
convert it to a function argument.

The reduction is now going to leave behind an unused alloca with
lifetime markers, which should be cleaned up separately.

I'd say this fixes llvm#93713. It
doesn't remove the lifetime markers as the issue suggests, but at least
they're now not going to be on the argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

llvm-reduce should remove lifetime.start/end when promoting alloca'd ptr to arg
3 participants