While provenance cannot be captured through these arguments, the address / object identity can.
Set the dead_on_return attribute (added in LLVM 21) for arguments that are passed indirectly, but not byval. This indicates that the value of the argument on return does not matter, enabling additional dead store elimination.
tests/codegen
tests/codegen-llvm