Remove tail marker when changing an argument to an alloca.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 23 Jan 2014 17:19:42 +0000 (17:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 23 Jan 2014 17:19:42 +0000 (17:19 +0000)
commit35b78fd04c4b1e2a0b648a2d5d0463cfa8f4c0ce
tree118156f3bfd080edcd31be4d0b5fdd50bb92e226
parent7d3b9d96b6405c1a0b6d1ae73d5a4a1d506d500d
Remove tail marker when changing an argument to an alloca.

Argument promotion can replace an argument of a call with an alloca. This
requires clearing the tail marker as it is very likely that the callee is now
using an alloca in the caller.

This fixes pr14710.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199909 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/ArgumentPromotion.cpp
test/Transforms/ArgumentPromotion/tail.ll [new file with mode: 0644]