summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode
diff options
context:
space:
mode:
authorPaul Robinson <paul_robinson@playstation.sony.com>2013-11-18 21:44:03 +0000
committerPaul Robinson <paul_robinson@playstation.sony.com>2013-11-18 21:44:03 +0000
commitdcbe35bad518b0b8ec8b9329a66104448b1e0394 (patch)
tree3839029ed02de18f49c107ad849b29419ad1c4fe /llvm/test/Bitcode
parentf16f037060450854afa323f5d9df423046ad03b6 (diff)
downloadbcm5719-llvm-dcbe35bad518b0b8ec8b9329a66104448b1e0394.tar.gz
bcm5719-llvm-dcbe35bad518b0b8ec8b9329a66104448b1e0394.zip
The 'optnone' attribute means don't inline anything into this function
(except functions marked always_inline). Functions with 'optnone' must also have 'noinline' so they don't get inlined into any other function. Based on work by Andrea Di Biagio. llvm-svn: 195046
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/attributes.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Bitcode/attributes.ll b/llvm/test/Bitcode/attributes.ll
index 2ff87d68ebc..1789878e9f5 100644
--- a/llvm/test/Bitcode/attributes.ll
+++ b/llvm/test/Bitcode/attributes.ll
@@ -207,7 +207,7 @@ define void @f34()
ret void;
}
-define void @f35() optnone
+define void @f35() optnone noinline
; CHECK: define void @f35() #23
{
ret void;
@@ -236,6 +236,6 @@ define void @f35() optnone
; CHECK: attributes #20 = { "cpu"="cortex-a8" }
; CHECK: attributes #21 = { sspstrong }
; CHECK: attributes #22 = { minsize }
-; CHECK: attributes #23 = { optnone }
+; CHECK: attributes #23 = { noinline optnone }
; CHECK: attributes #24 = { nobuiltin }
OpenPOWER on IntegriCloud