[PATCH] D45653: [X86] Enable sibling-call optimization for functions returning structs
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 6 07:06:16 PDT 2018
xbolva00 added a comment.
We should not abandon it. It seems we can optimize this case
struct MyStruct {
int arr[64];
};
void struct_by_value(MyStruct s);
void call_struct_by_value(int i, MyStruct s) {
struct_by_value(s);
}
https://godbolt.org/z/lxOq6B (GGC does it)
https://reviews.llvm.org/D45653
More information about the llvm-commits
mailing list