]> granicus.if.org Git - llvm/commit
Revert "Revert r275027 - Let FuncAttrs infer the 'returned' argument attribute"
authorHal Finkel <hfinkel@anl.gov>
Sat, 16 Jul 2016 07:21:28 +0000 (07:21 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 16 Jul 2016 07:21:28 +0000 (07:21 +0000)
commit4fe9cc7cb0ee93f8796936f316524f0524d8f110
treef17f7b2620d1927ebe6ff68c8ad68609a1677874
parentaa477292335548459f07711940fbeb778275f233
Revert "Revert r275027 - Let FuncAttrs infer the 'returned' argument attribute"

This reverts commit r275042; the initial commit triggered self-hosting failures
on ARM/AArch64. James Molloy identified the problematic backend code, which has
been disabled in r275677. Trying again...

Original commit message:

Let FuncAttrs infer the 'returned' argument attribute

A function can have one argument with the 'returned' attribute, indicating that
the associated argument is always the return value of the function. Add
FuncAttrs inference logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275678 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionAttrs.cpp
test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll
test/Transforms/FunctionAttrs/nocapture.ll
test/Transforms/FunctionAttrs/readattrs.ll