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

Aleksandr Urakov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 7 00:01:08 PDT 2018


aleksandr.urakov added subscribers: xbolva00, efriedma, sorokin.
aleksandr.urakov added a comment.

If I understand correctly, you have shown the case that is not relating to this patch? This patch is about returning structures, not about passing them by value. I think that it would be better to create separate patch for fixing that?

As for this one, it seems that it is possible to optimize the `sret-to-sret` case if the `sret` arguments are the same, but I'm not sure if it's enough (@efriedma how do you think, is it ok?). I'm going to work on this, but I'll do it some later because I'm working on another part now and I'll have a vacation soon. Or may be @sorokin can do it earlier?


https://reviews.llvm.org/D45653





More information about the llvm-commits mailing list