commit | 68a889757dec7f4b6d7e2e87863f3152bb0603c3 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Mon May 19 18:25:54 2014 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Mon May 19 18:25:54 2014 +0000 |
tree | 97731338e18963b8eed6d1576829f4b4270637ad | |
parent | 230c5eb4bde7314331ae5c0bca65087ed504202c [diff] [blame] |
Check the alwaysinline attribute on the call as well as on the caller. Differential Revision: http://reviews.llvm.org/D3815 llvm-svn: 209150
diff --git a/llvm/test/Transforms/Inline/always-inline.ll b/llvm/test/Transforms/Inline/always-inline.ll index a8703b8..5ad1bde 100644 --- a/llvm/test/Transforms/Inline/always-inline.ll +++ b/llvm/test/Transforms/Inline/always-inline.ll
@@ -122,3 +122,14 @@ ret void } +define i32 @inner7() { + ret i32 1 +} +define i32 @outer7() { +; CHECK-LABEL: @outer7( +; CHECK-NOT: call +; CHECK: ret + + %r = call i32 @inner7() alwaysinline + ret i32 %r +}