[llvm] fix preserve_none in X86 backend (PR #192300)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 12:08:27 PDT 2026


================

----------------
efriedma-quic wrote:

I think if you fix the issue where preserve_none doesn't do the copy, you end up also fixing the issue with tailcalls: you don't end up in this state in the first place, where you have a byval argument that isn't assigned a stack slot.

Probably everything gets fixed by just sticking `CCIfByVal<CCPassByVal<8, 8>>,` at the beginning of CC_X86_64_Preserve_None in X86CallingConv.td.

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


More information about the llvm-commits mailing list