Do early taildup of ret in CodeGenPrepare for potential tail calls that have a
authorCameron Zwarich <zwarich@apple.com>
Thu, 24 Mar 2011 04:52:10 +0000 (04:52 +0000)
committerCameron Zwarich <zwarich@apple.com>
Thu, 24 Mar 2011 04:52:10 +0000 (04:52 +0000)
commit6e8ffc1c4d73e6c91aca9ac28ef5859ead26e2b6
treed5f22038c241ffa03f8694cc0c0d2baed8a78b40
parent4bae588c75fbd6d1b8401d83a94ba64fcc381d95
Do early taildup of ret in CodeGenPrepare for potential tail calls that have a
void return type. This fixes PR9487.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128197 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/CodeGen/X86/tailcall-returndup-void.ll [new file with mode: 0644]