https://github.com/mshockwave approved this pull request. LGTM. I would suggest to be a little more explicit in the commit message about the original issue, for instance "fix call frame destruction elimination when returning structs" https://github.com/llvm/llvm-project/pull/107579