summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2016-07-10 22:02:55 +0000
committerHal Finkel <hfinkel@anl.gov>2016-07-10 22:02:55 +0000
commitd66a7b05dbdc42f9894e0ef5bbba4ff8c37d1e6d (patch)
treef6a5c8bc9aa0a504c36868e479401c9a3d31e7ca /llvm/test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll
parent3b66caa290ab1dbf96b5fea74f12d59452794adf (diff)
downloadbcm5719-llvm-d66a7b05dbdc42f9894e0ef5bbba4ff8c37d1e6d.tar.gz
bcm5719-llvm-d66a7b05dbdc42f9894e0ef5bbba4ff8c37d1e6d.zip
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. Differential Revision: http://reviews.llvm.org/D22202 llvm-svn: 275027
Diffstat (limited to 'llvm/test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll')
-rw-r--r--llvm/test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll b/llvm/test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll
index ec1db095728..0d0231b42ae 100644
--- a/llvm/test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll
+++ b/llvm/test/Transforms/FunctionAttrs/2009-01-02-LocalStores.ll
@@ -14,7 +14,7 @@ define i32* @b(i32 *%q) {
ret i32* %tmp
}
-; CHECK: define i32* @c(i32* readnone %r)
+; CHECK: define i32* @c(i32* readnone returned %r)
@g = global i32 0
define i32* @c(i32 *%r) {
%a = icmp eq i32* %r, null
OpenPOWER on IntegriCloud