[CodeGen] Don't attempt a tail-call with implicit sret.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 27 Mar 2015 20:28:30 +0000 (20:28 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 27 Mar 2015 20:28:30 +0000 (20:28 +0000)
commit2615b686d3ecfa2354edb60ead0c72c5a2e88dd4
treec01bcde1adf882f70ea1a7e72cfc54b66d1fdeb8
parent685212e39a1fdb37be164fd8b8e7152cc64e6fb8
[CodeGen] Don't attempt a tail-call with implicit sret.

Tailcalls are only OK with forwarded sret pointers. With sret demotion,
they're not, as we'd have a pointer into a soon-to-be-dead stack frame.

Differential Revison: http://reviews.llvm.org/D8510

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233409 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/AArch64/tailcall-implicit-sret.ll [new file with mode: 0644]