[PATCH] D45653: [X86] Enable sibling-call optimization for functions returning structs

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 27 15:00:42 PDT 2018


efriedma added a comment.

> but because in the C calling convention sret argument is cleaned up by a callee, while a non-sret pointer to a struct is cleaned up by a caller

This only applies to 32-bit.  (And even on 32-bit, we could still handle some cases where both the caller and callee are sret, I think.)


https://reviews.llvm.org/D45653





More information about the llvm-commits mailing list