OSDN Git Service

[ArgumentPromotion] don't break musttail invariant PR36543
authorFedor Indutny <fedor@indutny.com>
Fri, 2 Mar 2018 00:59:27 +0000 (00:59 +0000)
committerFedor Indutny <fedor@indutny.com>
Fri, 2 Mar 2018 00:59:27 +0000 (00:59 +0000)
commit6842a7cf3be496ef4cc1f9722eb212240ffdf761
tree57253506ad62730f03bd97afba73a667a2f909de
parenta8353210f0513b2a3bcfb547cc20432e17b8da5c
[ArgumentPromotion] don't break musttail invariant PR36543

Summary:
Do not break musttail invariant by promoting arguments of musttail
callee or caller.

Reviewers: sanjoy, dberlin, hfinkel, george.burgess.iv, fhahn, rnk

Reviewed By: rnk

Subscribers: rnk, llvm-commits

Differential Revision: https://reviews.llvm.org/D43926

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