llvm-project
2b839f66 - [LoongArch] Enable tail calls for sret and byval functions (#168506)

Commit
6 days ago
[LoongArch] Enable tail calls for sret and byval functions (#168506) Allow tail calls for functions returning via sret when the caller's sret pointer can be reused. Also support tail calls for byval arguments. The previous restriction requiring exact match of caller and callee arguments is relaxed: tail calls are allowed as long as the callee does not use more stack space than the caller. Fixes #168152
Author
Parents
Loading