[llvm] [WebAssembly] Disallow tail calls with byval arguments (PR #125142)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 18:46:04 PST 2025


efriedma-quic wrote:

Suppose you have a function like `void g(S, S); void f(S a, S b) { return g(b, a); }`.  To tail-call, you have to essentially swap a and b.  You use a temporary to avoid overwriting the argument before you copy it.

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


More information about the llvm-commits mailing list