]> granicus.if.org Git - llvm/commit
Merging r278900:
authorHans Wennborg <hans@hanshq.net>
Wed, 17 Aug 2016 22:03:07 +0000 (22:03 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 17 Aug 2016 22:03:07 +0000 (22:03 +0000)
commit4126f23e174bb343a81b112377a1b81387b6e625
treecc397222093ed692487055fa90e4dc7d59679312
parent5b9cd0413c02aa1c7dd908dbb9d67a1162f36528
Merging r278900:
------------------------------------------------------------------------
r278900 | cycheng | 2016-08-16 20:17:44 -0700 (Tue, 16 Aug 2016) | 12 lines

[ppc64] Don't apply sibling call optimization if callee has any byval arg

This is a quick work around, because in some cases, e.g. caller's stack
size > callee's stack size, we are still able to apply sibling call
optimization even callee has any byval arg.

This patch fix: https://llvm.org/bugs/show_bug.cgi?id=28328

Reviewers: hfinkel kbarton nemanjai amehsan
Subscribers: hans, tjablin

https://reviews.llvm.org/D23441
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@278990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/ppc64-sibcall.ll